[SOLVED] Qt icon - constant somewhere?
-
Hi,
I would like to include a "About Qt" menu in my App
Similar to this one : https://www.dropbox.com/s/mdrnhsm27ehto04/aboutQt.pngI was wondering, I remember when I had no icon for my QMainWindow, it showed the Qt icon, I guess the Qt icon is included somewhere in the code, I don't have to add a .png ressource? If so, what is the correct code to create the Qt icon ?
Thank you!
@QAction *actionHelpQT = menuHelp->addAction(QIcon(), tr("About Qt"));
-->
QAction *actionHelpQT = menuHelp->addAction(QIcon(Qt::QtIcon?), tr("About Qt"));@ -
Hi,
From a quick look in the sources you can try with:
QPixmap pm(QLatin1String(":/qt-project.org/qmessagebox/images/qtlogo-64.png"));
-
Thanks!
@QAction *actionHelpQT = menuAbout->addAction(QIcon(":/qt-project.org/qmessagebox/images/qtlogo-64.png"), tr("About Qt"));@