标题:qml 拍照保存路径问题
作者:nikonice
日期:2019-01-11 10:56
内容:
怎么样将qml 拍照后的照片存到手机指定位置中?
imageCapture.captureToLocation("file:///a.jpg");
打印错误:
W gstLog: QCameraImageCapture error: "Could not open destination file: /storage/emulated/0/DCIM/file:///a.jpg"
貌似qml拍照保存的位置只能在/storage/emulated/0/DCIM/内,能指定到手机特定位置吗?
#1 [never_forget 01-11 19:53]
你加了读写权限木有,可以试试 ~
#2 回 never_forget 的帖子 [nikonice 01-18 07:55]
never_forget:你加了读写权限木有,可以试试 ~ (2019-01-11 19:53)
file: /storage/emulated/0/DCIM/file:///a.jpg
我觉得是路径问题
imageCapture.captureToLocation("file:///a.jpg");
即使指定手机内存在的路径也不行
imageCapture.captureToLocation("file:///sdcard/data/a.jpg");