我试图使用来自主Pictures目录(/home/phablet/Pictures)的图像文件来处理动画image /Image对象,但是它说读取文件错误。我已经试过两条路了,但都没有用。我知道我可以简单地将图像包含在我的应用程序中,但是我想在执行过程中使用不同的图像。谢谢。
AnimatedImage{
id: gifVegeta
anchors.fill: parent
source: '/home/phablet/Pictures/vegeta_charge.gif'
//source: 'file:///home/phablet/Pictures/vegeta_charge.gif'
}发布于 2015-03-22 21:26:55
恐怕不行:您的应用程序是受限的,无法访问~/Pictures目录下的任何文件。有关此主题的更多信息,请访问https://developer.ubuntu.com/en/apps/platform/guides/app-confinement/
https://askubuntu.com/questions/492398
复制相似问题