Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-127328

NinePatchImageSelector cannot use relative path for source

    XMLWordPrintable

Details

    • 2d68f1c11 (dev), 07463d88a (6.8), 5f00f783e (6.7)

    Description

              NinePatchImage {
                  width: 50
                  height: 50
                  source: "images/button-background.9.png"
              }
      
              NinePatchImage {
                  width: 50
                  height: 50
                  source: "images/button-background"
                  NinePatchImageSelector on source {
                      states: [
                          {"disabled": !mouseArea.enabled},
                          {"pressed": mouseArea.pressed },
                          {"hovered": mouseArea.hoverEnabled && mouseArea.containsMouse }
                      ]
                  }
              }
      
              NinePatchImage {
                  width: 50
                  height: 50
                  source: "qrc:/qt/qml/NinePatchImageTest/images/button-background"
                  NinePatchImageSelector on source {
                      id: selector
                      states: [
                          {"disabled": !mouseArea.enabled},
                          {"pressed": mouseArea.pressed },
                          {"hovered": mouseArea.hoverEnabled && mouseArea.containsMouse }
                      ]
                  }
              }
      

      the second NinePatchImage shows nothing.

      please see the attached reproducible demo for details.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            mitch_curtis Mitch Curtis
            jiu shanheng jiu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes