资源简介
Qt实现托盘全部常用功能示例源代码,可帮助新手快速掌握Qt托盘的使用,在Windows、Mac和Linux上可编译通过。

代码片段和文件信息
/****************************************************************************
**
** Copyright (C) 2006-2007 Trolltech ASA. All rights reserved.
**
** This file is part of the example classes of the Qt Toolkit.
**
** Licensees holding a valid Qt License Agreement may use this file in
** accordance with the rights responsibilities and obligations
** contained therein. Please consult your licensing agreement or
** contact sales@trolltech.com if any conditions of this licensing
** agreement are not clear to you.
**
** Further information about Qt licensing is available at:
** http://www.trolltech.com/products/qt/licensing.html or by
** contacting info@trolltech.com.
**
** This file is provided AS IS with NO WARRANTY OF ANY KIND INCLUDING THE
** WARRANTY OF DESIGN MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
**
****************************************************************************/
#include
#include
#include “window.h“
int main(int argc char *argv[])
{
QApplication app(argc argv);
if (!QSystemTrayIcon::isSystemTrayAvailable()) {
QMessageBox::critical(0 Qobject::tr(“Systray“)
Qobject::tr(“I couldn‘t detect any system tray “
“on this system.“));
return 1;
}
Window window;
window.show();
return app.exec();
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2014-11-29 19:51 systray\
目录 0 2014-11-29 19:21 systray\images\
文件 3439 2007-12-05 00:38 systray\images\bad.svg
文件 3928 2007-12-05 00:38 systray\images\heart.svg
文件 3194 2007-12-05 00:38 systray\images\trash.svg
文件 1428 2014-11-29 19:33 systray\main.cpp
文件 366 2014-11-29 19:32 systray\systray.pro
文件 13622 2014-11-29 19:26 systray\systray.pro.user
文件 181 2007-12-05 00:38 systray\systray.qrc
文件 8221 2014-11-29 19:51 systray\window.cpp
文件 2297 2007-12-05 00:38 systray\window.h
- 上一篇:Qt实现仿qq右下角浮动弹窗
- 下一篇:jdk1.7_for_mac.txt
相关资源
- PB做的托盘程序(最小化后在左下角显
- QT局域网聊天系统(基于QT5.修改过)
- 基于托盘管理的船舶企业管舾件生产
- QT5.5入门与项目实战
- 基于FFmpeg4.0.2的AAC编码器
- mp4_play.zip
- 使用Qt编写的视频监控系统支持Qt4-Q
- Qt 多线程连接数据库——数据库
- 基于Qt5.8+OpenCV3.2的Basler多相机触发开
- 串口调试助手 Qt5版源码
- Qt5的多线程小程序,实现按钮开关线
- Ubuntu16.04中配置Qt5.9.1和OpenCV3.4.0过程
- Qt pdf poppler
- 基于Qt5的串口调试助手
- Qt类关系图
- PyQt5编写的大数据应用-高速公路违章
- QT5.9.0实现的QWidget版富文本编辑器
- Qt5版NeHe OpenGL教程6-10
- QT5下实现基于TCP发送和接接收文件
- PyQt5_gpl-5.11.3.zip
- qtribbon可用
- qt5串口简单实现图片、pdf文件的传输
- qt5.8实现rtsp流播放
- QT5检测USB设备
- Qt5.5 开发 Creo3.0 案例
-
Qt5.8 QMediaPla
yer 音乐播放器 - qt5之学生管理系统
- qt5-qtwebkit-5.6.2-1.el7.x86_64.rpm
- Qt5 for windows plugin dll
- qt5_V4L2_Camera 实现摄像头实时画面显示
评论
共有 条评论