PDA

View Full Version : Problem with qresources



drake1983
8th December 2007, 21:56
I have an app, i use images that i have include in my qresources.qrc, but when i compile the app the resource doesnt show in the binary executable. i use Qt designer and kdevelop, i test too in HaiQ and mannualy in konsole.

jacek
8th December 2007, 22:52
Did you add that file to RESOURCES variable in your .pro file?

drake1983
9th December 2007, 20:25
Yes, this is my .pro file:



SOURCES += main.cpp \
maingui.cpp
HEADERS += maingui.h \
ui_gui.h
TEMPLATE = app
CONFIG += warn_on \
thread \
qt
TARGET = ../bin/mencodergui
RESOURCES = application.qrc
FORMS += gui.ui


I have designed the GUI using QT Designer.
The Preview showed by Designer shows the icons, but the program compiled with KDevelop, HaiQ or manually using qmake and make doesn't show the icons.

jacek
9th December 2007, 21:01
Could you post the contents of application.qrc?

wyxknouth
9th December 2007, 21:42
This es application.qrc

<!DOCTYPE RCC><RCC version="1.0">
<qresource>
<file>fileopen.xpm</file>
</qresource>
</RCC>



It is the same project that drake1983

jacek
9th December 2007, 21:51
Is fileopen.xpm in the same directory as application.qrc?