Results 1 to 2 of 2

Thread: Resources cannot be read under Designer

  1. #1

    Default Resources cannot be read under Designer

    I have created QWidget, resources and set the prefix as /files and add one image,
    then in StyleSheet Editor I set

    Qt Code:
    1. background-image: url(:/files/m_bottom.png)
    To copy to clipboard, switch view to plain text mode 

    the background should be seen - it's not, so I used absolute path by what I have avoided resources:
    Qt Code:
    1. background-image: url(/root/Desktop/files/m_bottom.png);
    To copy to clipboard, switch view to plain text mode 
    this way the background is displayed

    the same issue under Windows - but much worse, I can't set any path which makes Designer to display the image, but it's fine during run-time.

    That forced me to use Designer under X11 - still the half expected not working as should

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Resources cannot be read under Designer

    Is the resource file associated with the form you are editing in Designer? Do you see the images in resource editor in Designer?

Similar Threads

  1. "has a relation" to work with designer ?
    By thejester in forum Qt Tools
    Replies: 5
    Last Post: 4th December 2007, 15:45
  2. QIODevice read()
    By ShaChris23 in forum Newbie
    Replies: 1
    Last Post: 3rd May 2007, 00:29
  3. Using Q_INIT_RESOURCE() in a designer plugin...
    By thawkins in forum Qt Programming
    Replies: 2
    Last Post: 26th March 2007, 19:48
  4. Qt Designer Style Sheet Resources
    By bjoernbg in forum Newbie
    Replies: 1
    Last Post: 24th January 2007, 07:12
  5. How to create custom slot in Qt Designer 4.1?
    By jamadagni in forum Qt Tools
    Replies: 31
    Last Post: 18th January 2006, 20:46

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.