Hi
Yes, sure
the dlls, exe are in one folder, installed at end user machine to one folder
I have added resources in .pro and also " registered " in main.cpp as it is explainded in Qt reference documentation
Here is the example of image including from file generated by .uic after I've added icons in Qt Designer:
actionTell_a_friend->setIcon(icon1);
actionContact_us
= new QAction(MainWindow
);
actionContact_us
->setObjectName
(QString::fromUtf8("actionContact_us"));
actionContact_us->setIcon(icon2);
actionQuit
= new QAction(MainWindow
);
actionQuit
->setObjectName
(QString::fromUtf8("actionQuit"));
...
QIcon icon1;
icon1.addFile(QString::fromUtf8(":/Icons2/Tell a Friends.ico"), QSize(), QIcon::Normal, QIcon::Off);
actionTell_a_friend->setIcon(icon1);
actionContact_us = new QAction(MainWindow);
actionContact_us->setObjectName(QString::fromUtf8("actionContact_us"));
QIcon icon2;
icon2.addFile(QString::fromUtf8(":/Icons2/Contact Us.ico"), QSize(), QIcon::Normal, QIcon::Off);
actionContact_us->setIcon(icon2);
actionQuit = new QAction(MainWindow);
actionQuit->setObjectName(QString::fromUtf8("actionQuit"));
...
To copy to clipboard, switch view to plain text mode
Bookmarks