Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qml Image cannot be opened if containing special characters(from utf 8 like clémentine.jpg)
Forum Updated to NodeBB v4.3 + New Features

Qml Image cannot be opened if containing special characters(from utf 8 like clémentine.jpg)

Scheduled Pinned Locked Moved Mobile and Embedded
1 Posts 1 Posters 482 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.
  • O Offline
    O Offline
    Ovidiu
    wrote on last edited by
    #1

    Hello,
    When i try to load the picture clémentine.jpg on embedded board by using the below code i get this error:
    file:///media/datastore/ui/HMIApplications/Media/qml/MediaHMILib/test.qml:92:5: QML Image: Cannot open: file:///media/datastore/ui/HMIApplications/Media/qml/MediaHMILib/cl?mentine.jpg
    Using the exact path into a text item the path is display correctly(looks like the encoding utf 8 is ok)
    The following test code was done on windows and linux pc and the picture is displayed and i cannot figure out why on the embedded is not working.

    Can you please help me with some information.
    Thank you,
    Ovidiu
    import QtQuick 2.0
    Rectangle {
    property url url: "relative_path/clémentine.jpg"
    Component.onCompleted:
    {
    console.log(myImage.source);
    }
    Image
    {
    id:myImage
    source:url
    }
    }

    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