void MainWindow::createTrayIcon(){ createIconMenu(); this->setWindowIcon(QIcon(QApplication::applicationDirPath() + "/favicon.ico")); trayIcon = new QSystemTrayIcon(this); trayIcon->setIcon(QIcon(QApplication::applicationDirPath() + "/favicon.ico")); trayIcon->setContextMenu(m); connect(trayIcon, SIGNAL(activated(QSystemTrayIcon::ActivationReason)), SLOT(tray_dblClick(QSystemTrayIcon::ActivationReason))); trayIcon->setToolTip("Viking Control Center"); trayIcon->show();}
cTrayIcon = new QSystemTrayIcon(QIcon(QApplication::applicationDirPath() + "/logo2.ico"), this);cTrayIcon->show();
cTrayIcon = new QSystemTrayIcon(QIcon(":/images/logo2.ico"), this);cTrayIcon->show();
qDebug() << QImageReader::supportedImageFormats();