![]() ![]() Now my only issue is how to get rid of extra icons in system tray. I can show the default menu now with setDefaultAction() and double click on tray. How can I do that? I understand I have to setup default option on double click (which also appears bold in context menu) but how can I do that? Thanks! Since we at it, I also want to be able to double click the tray icon which should bring up the app. I delete the systemTray pointer in the destructor. SystemTray->setContextMenu( systemTrayIconMenu ) ![]() SystemTrayIconMenu->addAction( ui->actionQuit ) SystemTrayIconMenu->addAction( ui->actionClose ) Whats interesting is that the usual fixes for a blank notification area suggest disabling the 'News and Interests'. SystemTrayIconMenu->addAction( ui->actionSettings ) The only way to get my system tray icons back is to re-enable it and mitigate the damage by turning off ALL interests and setting it to just display a weather icon. SystemTrayIconMenu->addAction( ui->actionOpen_App ) ![]() SystemTray->setToolTip("Rigaku sync application") SystemTray->setIcon( QIcon(":icons/Resources/Orange.ico") ) How can I stop creating this duplicate icons? MainWindow::MainWindow(QWidget *parent) : DavMail is a POP/IMAP/SMTP/Caldav/Carddav/LDAP gateway allowing users to use any mail client with Exchange, even from the internet through Outlook Web Access on any platform, tested on MacOSX, Linux and Windows Main project site is still on Sourceforge at. I have also setup my application so only one instances can be instantiated at one time but still after several start and exit of the program, system tray seems to accommodate all the icons which than slowly drops when I hover mouse on them to last (legit) one. When I run and exit my applications, it leaves too many tray icons in the tray instead of just one. ![]()
0 Comments
Leave a Reply. |