Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Forum Updated on Feb 6th

    Solved QML Open Image file saved in Japanese/Chinese.

    Mobile and Embedded
    1
    2
    248
    Loading More Posts
    • 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.
    • C
      Chirag Modh last edited by

      I am trying to display image on my Linux platform based device.
      Using QML : Image object to display Image.
      Images which having path in Japanese /Chinese languages are not laoding on UI.
      ex:
      path: /tmp/USB1/image/写真/1.jpg

      any special handling required to open this file.

      Thanks,
      Chirag

      1 Reply Last reply Reply Quote 0
      • C
        Chirag Modh last edited by

        It works with

        QTextCodec::setCodecForLocale(QTextCodec::codecForName("UTF-8"));
        Put this statement in main.cpp

        1 Reply Last reply Reply Quote 1
        • First post
          Last post