Results 1 to 6 of 6

Thread: Problem with qresources

  1. #1
    Join Date
    Mar 2007
    Posts
    31
    Thanks
    13
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Problem with qresources

    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.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Problem with qresources

    Did you add that file to RESOURCES variable in your .pro file?

  3. #3
    Join Date
    Mar 2007
    Posts
    31
    Thanks
    13
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Problem with qresources

    Yes, this is my .pro file:

    Qt Code:
    1. SOURCES += main.cpp \
    2. maingui.cpp
    3. HEADERS += maingui.h \
    4. ui_gui.h
    5. TEMPLATE = app
    6. CONFIG += warn_on \
    7. thread \
    8. qt
    9. TARGET = ../bin/mencodergui
    10. RESOURCES = application.qrc
    11. FORMS += gui.ui
    To copy to clipboard, switch view to plain text mode 

    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.
    Last edited by drake1983; 9th December 2007 at 20:40.

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Problem with qresources

    Could you post the contents of application.qrc?

  5. #5
    Join Date
    Dec 2007
    Posts
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Problem with qresources

    This es application.qrc

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



    It is the same project that drake1983

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Problem with qresources

    Is fileopen.xpm in the same directory as application.qrc?

  7. The following user says thank you to jacek for this useful post:

    drake1983 (10th December 2007)

Similar Threads

  1. Graphics view display problem.
    By kiranraj in forum Qt Programming
    Replies: 3
    Last Post: 20th July 2007, 07:08
  2. QTimer problem ... it runs but never triggs
    By yellowmat in forum Newbie
    Replies: 4
    Last Post: 4th July 2006, 12:54
  3. Grid Layout Problem
    By Seema Rao in forum Qt Programming
    Replies: 2
    Last Post: 4th May 2006, 12:45
  4. fftw problem
    By lordy in forum General Programming
    Replies: 1
    Last Post: 16th March 2006, 21:36
  5. Replies: 16
    Last Post: 7th March 2006, 15:57

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.