ntp
4th October 2007, 19:36
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"));
In my main.cpp, I have:
QApplication app(argc, argv);
Q_INIT_RESOURCE(myResources);
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.
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"));
In my main.cpp, I have:
QApplication app(argc, argv);
Q_INIT_RESOURCE(myResources);
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.