[solved]Invisible system tray icon
-
I created tray icon:
LogWindow::LogWindow(QWidget *parent)
: QMainWindow(parent)
{
...
createTrayIcon();
trayIcon->show();
...
}void LogWindow::createTrayIcon()
{
trayIcon = new QSystemTrayIcon(this);
QIcon icon("/Resources/trayIcon.png");
trayIcon->setIcon(icon);
}But in tray it's invisible, only empty place, and instead of one, appears two 'icons\empty places' and if add events to show\hide window and click each empty place - appears two different windows and I can write different text in each.
I read something about creating .qrc file and adding 'icon' prefix and file, but I use visual studio qt addin and don't know what I shoulde do there.