Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Qml image is not showing image with special charater .

Qml image is not showing image with special charater .

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 2 Posters 981 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    vivekmalik2466
    wrote on last edited by
    #1

    problem is at qml sile image source is not taking special character.
    can you help .

    problem code:

    @    Image {
                        id: artwork
                        height: 100
                        width: 100
                        source: coverart     //here is the path with special character like(C:/Users/Administrator.VIVEK-PC/Music/Vicky Donor~!@#$%^&()/Vicky Donor.png)
                        smooth: true
                        z: 9
                        anchors.horizontalCenter: parent.horizontalCenter
                        anchors.top: parent.top
                        anchors.topMargin: 8
                    }
    

    @

    1 Reply Last reply
    0
    • C Offline
      C Offline
      chrisadams
      wrote on last edited by
      #2

      Source is a url, so the normal url escaping rules apply. You can percent-encode special characters.
      By the way, this is in the wrong section of the forums, and should be moved to the QtQuick section.

      [Moderator's note: It has been moved to the Qt Quick forum -- mlong]

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved