Hello everybody,
QT:4.1.1
I have designed a MainWindow and a toolbar.I have created a new Action with a Image from: "D:\rapha\qtprojekte\qt4\mainwindow\images".
In the designer i can see the beautiful icon.
So i have 2 questions now:
1. After compiling and running Program i was not able to see my icon in the toolbar.
I think that ui_mainwindow.h create the false path:
actionTest
->setIcon
(QIcon(QString::fromUtf8("images/copy.png")));
actionTest->setIcon(QIcon(QString::fromUtf8("images/copy.png")));
To copy to clipboard, switch view to plain text mode
Shouldnt be:
actionTest
->setIcon
(QIcon(QString::fromUtf8("../images/copy.png")));
actionTest->setIcon(QIcon(QString::fromUtf8("../images/copy.png")));
To copy to clipboard, switch view to plain text mode
Because my structure i am using are:
images
release (My App are here)
.
.
2. How to compile my app included the icons, so i will not need the images folder any more?
Bookmarks