自强不吸 |
2017-06-13 08:10 |
qml里面Image控件不能识别中文路径是咋回事
我的本意是用C++读出文件路径在qml界面上显示图片,可是路径能打印出来中文,但是加入到image的source里面就不识别 错误提示:file:///D:/Work/QtProject/qml/ImagePreview.qml:39:23: QML Image: ????Ad????????? 后来我直接用一个Image控件写上中文路径还是不行, Image { anchors.fill: parent source: "../image/usbImage/UI界面/IMG_2438.JPG" }
提示错误: QML Image: Cannot open: file:///D:/Work/QtProject/untitled/image/usbImage/UI????/IMG_2438.JPG
|
|