Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-32377

Background image aded via Formsor with setStylesheet do not show in Run, resource access problem

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • Qt Creator 15.0.0
    • Widget Designer
    • None
    • MacOS Qt Creator
    • macOS

    Description

      I added images to the .qrc resources and set the background of a widget to one of them. It shows up in the Form editor. In after built and run the widget shows with buttons, but the image is not shown. In some tests I get the message "could not create Pixmap.." which indicates that the file cannot be found (in macos!)

      Attachments

        1. .DS_Store
          8 kB
        2. .DS_Store
          6 kB
        3. CMakeLists.txt
          0.7 kB
        4. CMakeLists.txt.user
          58 kB
        5. main.cpp
          0.6 kB
        6. qtcreatorbug32377.zip
          99 kB
        7. tbLogo.png
          tbLogo.png
          101 kB
        8. tbViews.qrc
          0.1 kB
        9. widget.cpp
          0.2 kB
        10. widget.h
          0.3 kB
        11. widget.ui
          0.5 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kleint Friedemann Kleint
            josdenouden Jos den Ouden
            Jos den Ouden Jos den Ouden
            Jos den Ouden Jos den Ouden
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes