Public bug reported:

I have a sample QML application at:
https://gitcafe.com/ubuntu/TabApp2.git

You may use the command:

git clone https://gitcafe.com/ubuntu/TabApp2.git

to get the code.

In the ExternalPage.qml,

import QtQuick 2.0
import Ubuntu.Components 1.1

Item {
    anchors.fill: parent
    Label {
        anchors.centerIn: parent
        text: i18n.tr("This is page xxx one")
    }
}

I defined it as an "Item". However, when I assign it in the following
way:

       Tab {
            id: externalTab
            title: i18n.tr("External")

            page: Loader {
                id: loader
                anchors.fill: parent
                source: (tabs.selectedTab === externalTab) ? 
Qt.resolvedUrl("ExternalPage.qml") : ""

                onLoaded: {
                    console.log( loader.source + " is loaded")
                }
            }
        }

it does not output any error messages, making it hard to use if a
developer does not know how to define it.

Best regards,
XiaoGuo

** Affects: ubuntu-ui-toolkit (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1436767

Title:
  No error output if item is used for the Page assignment

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1436767/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to