Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Problem Loading QML on First Menu Button Click
Forum Updated to NodeBB v4.3 + New Features

Problem Loading QML on First Menu Button Click

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 2 Posters 2.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    paultitude
    wrote on last edited by
    #1

    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"
    }
    }
    }
    @

    1 Reply Last reply
    0
    • P Offline
      P Offline
      paultitude
      wrote on last edited by
      #2

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

      1 Reply Last reply
      0
      • M Offline
        M Offline
        morker
        wrote on last edited by
        #3

        Hi,

        can you post your code?

        Thanks

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved