1 Star 0 Fork 125

LukeLee/qt-notify

forked from 终端组/qt-notify 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
mainwindow.cpp 456 Bytes
一键复制 编辑 原始数据 按行查看 历史
潘昕 提交于 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");
});
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/luke47/qt-notify.git
git@gitee.com:luke47/qt-notify.git
luke47
qt-notify
qt-notify
master

搜索帮助