Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. OnClicked issues
QtWS25 Last Chance

OnClicked issues

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 2 Posters 1.1k Views
  • 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.
  • D Offline
    D Offline
    dstudentx
    wrote on last edited by
    #1

    can you have onClicked do 2 operations?

    such as

    @ MouseArea {
    id: mousearea11
    x: 56
    y: 51
    width: 118
    height: 110
    anchors.rightMargin: 502
    anchors.bottomMargin: 286
    anchors.leftMargin: 56
    anchors.topMargin: 51
    anchors.fill: parent
    onClicked: mainLoader.source = "load_images.qml"
    onClicked: page.state = 'State1'
    }@

    1 Reply Last reply
    0
    • M Offline
      M Offline
      melghawi
      wrote on last edited by
      #2

      Yes you can.

      @
      MouseArea {
      id: mousearea11
      x: 56
      y: 51
      width: 118
      height: 110
      anchors { fill:parent; rightMargin: 502; bottomMargin: 286; leftMargin: 56; topMargin: 51 }

          onClicked: {
                  mainLoader.source = "load_images.qml";
                  page.state = 'State1';
          }
      

      }
      @

      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