写了一个小demo,功能是实现Camera的自动截图。程序能正常运行,但是发现Image无法
显示中文路径的
图片。望高手指点。
代码如下:
点击“Take Photo”
按钮后,本地
文件生成相应的图片文件,但是ListView里的Image显示报错。如下:
08:14:53: Starting E:\Qt_Project\build-Camera-Desktop_Qt_5_9_8_MinGW_32bit-Debug\debug\Camera.exe...QML debugging is enabled. Only use this in a safe environment.qml: path: C:/Users/宋慧荣/Pictures/IMG_00000019.jpgqrc:/main.qml:109:19: QML Image: ????Ac?????????08:16:20: E:/Qt_Project/build-Camera-Desktop_Qt_5_9_8_MinGW_32bit-Debug/debug/Camera.exe exited with code 0