Problem Loading QML on First Menu Button Click



  • Hi,

    @
    [Qt Message] file:///Z:/resource/qt/imports/com/nokia/symbian.1.1/ScrollBar.qml:81:5: QML Connections: Cannot assign to non-existent property "onCurrentOrientationChanged"
    @

    Main.qml :

    @
    import QtQuick 1.1
    Rectangle {
    width: 640
    height: 480

    property alias loader : mainLoader

    Loader {
        id: mainLoader
    }
    

    }
    @

    Test.QML
    @
    import QtQuick 1.1
    import com.nokia.symbian 1.1

    Rectangle {
    width: 640
    height: 480
    Button {
    id: buttonPlayGame
    width: 320
    text: "Play"
    clip: false
    smooth: false
    disabled: false

    onClicked: {
    loader.source = "Test.qml"
    }
    }
    }
    @



  • Solved it. Initialised the loader on the menu screen and added another loader for the sub menu.



  • Hi,

    can you post your code?

    Thanks


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.