QML:设置AnimatedImage源而不加载资源中的文件

QML: set AnimatedImage source without loading files in Resources

我有一个 QML 表单:

AnimatedImage {
   id: gifImage
}

我需要设置它的 属性 source,而不包括资源下的文件(因为它们在 mb 中太重)。我怎样才能加载那些动画图像?

谢谢

可以传本地文件路径:

import QtQuick 2.0

AnimatedImage {
    id: animation
    source: "file:///path/of/your/file.gif" 
}