資源簡介
Qt實現(xiàn)托盤全部常用功能示例源代碼,可幫助新手快速掌握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
評論
共有 條評論