Solved 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.jpgany special handling required to open this file.
Thanks,
Chirag -
It works with
QTextCodec::setCodecForLocale(QTextCodec::codecForName("UTF-8"));
Put this statement in main.cpp