This is for windows but I'll need to do the same for Linux eventually.
I've created an application that has resources using Compiled-In Resources. I have a myResources.qrc file and I create my images using code like:
m_stopInputAction
->setIcon
(QIcon(":/stop.gif"));
m_stopInputAction->setIcon(QIcon(":/stop.gif"));
To copy to clipboard, switch view to plain text mode
In my main.cpp, I have:
Q_INIT_RESOURCE(myResources);
QApplication app(argc, argv);
Q_INIT_RESOURCE(myResources);
To copy to clipboard, switch view to plain text mode
This works fine on my machine. I copied the executable and all the dlls from my qt/lib directory over to another machine and put them into one directory. When I ran the program, everything came up except the icons. I tried copying over the myResources.qrc file also but that didn't help.
Is there a step that I am missing?
Thanks.
Bookmarks