ubuntu-phone team mailing list archive
-
ubuntu-phone team
-
Mailing list archive
-
Message #18543
theme.name and qrc
Hi,
I want to load my theme that I have with other files in qml.qrc (Resource
Collection Files)
like this:
<RCC>
<qresource prefix="/">
<file>qml/main.qml</file>
<file>qml/LightTheme/parent_theme</file>
<file>qml/LightTheme/ButtonStyle.qml</file>
<file>qml/LightTheme/Palette.qml</file>
</qresource>
</RCC>
Unfortunately, when I try to load it with this:
theme.name = "qrc:///qml/LightTheme"
or with:
theme.name = "LightTheme"
It does not work:
Theme not found: "qrc:///qml/LightTheme"
So how can I load a my theme from qrc?
Petr Štětka
Follow ups