Make a application that create a QSystemTrayIcon and no taskbar entry
-
@#include <QWidget>
#include <QApplication>
#include <QSystemTrayIcon>int main(int argc, char** argv)
{
QApplication app(argc, argv);
QWidget w1;
QSystemTrayIcon icon(QIcon("./icon.png"), &w1);
icon.show();
app.setQuitOnLastWindowClosed(false);
return app.exec();
}@When I run this code, sometimes it make no taskbar entry but sometimes it does
Can anyone explain me why?
And how can I make a application that only make a systemtray icon without taskbar entry?
I am using Linux Mint with MATE
Sorry for my bad english! -
[quote author="8majkel8" date="1371136224"]@
#include <QApplication>
#include <QSystemTrayIcon>int main(int argc, char** argv)
{
QApplication app(argc, argv);QSystemTrayIcon icon(QIcon("./icon.png")); icon.show(); return app.exec();}
@[/quote]It doesn't work. Sometimes it make a taskbar entry.
This taskbar entry remain even after i have killed this program -
I have the same problem:
http://qt-project.org/forums/viewthread/28655/