QML and paths to images
Dmitry
dmitry.ashkadov at rosalab.ru
Sat Jun 9 14:56:46 UTC 2012
09.06.2012 18:39, Aaron J. Seigo пишет:
> On Saturday, June 9, 2012 16:27:38 Dmitry wrote:
>> I'm working on implementation of system tray in QML.
>> Is it possible to get absolute path to icon/image/movie in QML? I need
>> to put into QML code AnimatedImage item, but it requires a full path to
>> a movie (animation). I have only name of movie instead of its full path.
> if the animation is in the package, then you can use a
> MobileComponents.Package object
>
> i have no idea what that is still in MobileComponents instead of Core.. marco?
>
> if the animation is NOT in the package ... where is it? (somewhere in
> $KDEDIRS? somewhere application specific? etc..)
>
Hello!
Animations are in /usr/share/icons/<theme>/<size> and if I use C++ I'll
load them using KIconLoader::loadMovie().
Thank you!
More information about the Plasma-devel
mailing list