Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

QML Open Image file saved in Japanese/Chinese.



  • 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



  • It works with

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


Log in to reply