touch-packages team mailing list archive
-
touch-packages team
-
Mailing list archive
-
Message #36188
[Bug 1184611] Re: [Icon] image path is not correctly resolved if used from within a qrc file
** Changed in: ubuntu-ui-toolkit (Ubuntu)
Importance: Undecided => Medium
** Changed in: ubuntu-ui-toolkit (Ubuntu)
Status: New => Confirmed
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to ubuntu-ui-toolkit in
Ubuntu.
https://bugs.launchpad.net/bugs/1184611
Title:
[Icon] image path is not correctly resolved if used from within a qrc
file
Status in Ubuntu UI Toolkit:
Confirmed
Status in “ubuntu-ui-toolkit” package in Ubuntu:
Confirmed
Bug description:
If writing an application and putting all the QML files into a qrc
file (I know, its discouraged, still, Qt supports it so it should work
I'd say) the Icon {} component does not correctly resolve the paths to
the image files.
Qt seems to have a mechanism that it always searches for icons in the
current scope. That means, if having a QML file in a qrc and referring
to an image with "/path/to/image.png" it actually resolves it as
"qrc:///path/to/image.png". There is still the possiblity to directly
point to the icon on disk using "file:///path/to/image.png".
The Icon component seems to suffer from this by not specifying the
file:// uri scheme and the image gets searched only in the qrc. file.
The Icon component should most likely always point to file:// when
resolving images.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-ui-toolkit/+bug/1184611/+subscriptions