The fact we have no simple fix does not make the bug invalid.
On Oct 1, 2014 7:55 AM, "Christian Dywan" <email address hidden> wrote:
> All apps should be using a MainView which would prevent this issue.
> Beyond that there's nothing we can do because the import is the only
> point at which types are registered… the only way to solve this would be
> to implement a plugin system for image loaders that is separate from QML
> plugins.
>
> ** Changed in: ubuntu-ui-toolkit
> Status: Confirmed => Invalid
>
> --
> You received this bug notification because you are subscribed to Ubuntu
> UI Toolkit.
> https://bugs.launchpad.net/bugs/1100795
>
> Title:
> Failure to load images with @ suffix when images loaded before import
> Ubuntu.Components
>
> Status in Ubuntu UI Toolkit:
> Invalid
>
> Bug description:
> Given the following simple 3 files, you get the following error when
> running Main.qml in qmlscene:
>
> file:///usr/share/themes/Ambiance/qmltheme/ScrollbarDelegate.qml:449:13:
> QML Image: Cannot open:
> file:///usr/share/themes/Ambiance/qmltheme/artwork/ScrollbarBottomIdle.png
> file:///usr/share/themes/Ambiance/qmltheme/ScrollbarDelegate.qml:445:13:
> QML Image: Cannot open:
> file:///usr/share/themes/Ambiance/qmltheme/artwork/ScrollbarTopIdle.png
>
> (repeated several times)
>
> Here's the files:
>
> ==== Main.qml ====
>
> import QtQuick 2.0
> Item {
> height: 100
> width: 400
> ImageItem {}
> TextItem {}
> }
>
> ==== ImageItem.qml ====
>
> import QtQuick 2.0
> Image {}
>
> ==== TextItem.qml ====
>
> import QtQuick 2.0
> import Ubuntu.Components 0.1
>
> TextArea {}
>
> ====================
>
> If you switch the order of ImageItem and TextItem in Main.qml or
> "import Ubuntu.Components 0.1" from Main.qml, then the error doesn't
> appear anymore
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu-ui-toolkit/+bug/1100795/+subscriptions
>
The fact we have no simple fix does not make the bug invalid.
On Oct 1, 2014 7:55 AM, "Christian Dywan" <email address hidden> wrote:
> All apps should be using a MainView which would prevent this issue. /bugs.launchpad .net/bugs/ 1100795 /usr/share/ themes/ Ambiance/ qmltheme/ ScrollbarDelega te.qml: 449:13: /usr/share/ themes/ Ambiance/ qmltheme/ artwork/ ScrollbarBottom Idle.png /usr/share/ themes/ Ambiance/ qmltheme/ ScrollbarDelega te.qml: 445:13: /usr/share/ themes/ Ambiance/ qmltheme/ artwork/ ScrollbarTopIdl e.png ======= ====== /bugs.launchpad .net/ubuntu- ui-toolkit/ +bug/1100795/ +subscriptions
> Beyond that there's nothing we can do because the import is the only
> point at which types are registered… the only way to solve this would be
> to implement a plugin system for image loaders that is separate from QML
> plugins.
>
> ** Changed in: ubuntu-ui-toolkit
> Status: Confirmed => Invalid
>
> --
> You received this bug notification because you are subscribed to Ubuntu
> UI Toolkit.
> https:/
>
> Title:
> Failure to load images with @ suffix when images loaded before import
> Ubuntu.Components
>
> Status in Ubuntu UI Toolkit:
> Invalid
>
> Bug description:
> Given the following simple 3 files, you get the following error when
> running Main.qml in qmlscene:
>
> file://
> QML Image: Cannot open:
> file://
> file://
> QML Image: Cannot open:
> file://
>
> (repeated several times)
>
> Here's the files:
>
> ==== Main.qml ====
>
> import QtQuick 2.0
> Item {
> height: 100
> width: 400
> ImageItem {}
> TextItem {}
> }
>
> ==== ImageItem.qml ====
>
> import QtQuick 2.0
> Image {}
>
> ==== TextItem.qml ====
>
> import QtQuick 2.0
> import Ubuntu.Components 0.1
>
> TextArea {}
>
> =======
>
> If you switch the order of ImageItem and TextItem in Main.qml or
> "import Ubuntu.Components 0.1" from Main.qml, then the error doesn't
> appear anymore
>
> To manage notifications about this bug go to:
> https:/
>