Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
Clone or download
mainwindow.cpp 456 Bytes
Copy Edit Web IDE Raw Blame History
潘昕 authored 2016-10-14 13:51 . 增加文档
#include "mainwindow.h"
#include "notifymanager.h"
#include <QPushButton>
MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent)
{
QPushButton * button = new QPushButton("弹窗", this);
NotifyManager *manager = new NotifyManager(this);
connect(button, &QPushButton::clicked, manager, [manager]{
manager->notify("新消息", "新消息新消息新消息新消息", "://img/message.png", "http://www.github.com");
});
}

Comment ( 0 )

Sign in for post a comment