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 button open "new" form
Forum Updated to NodeBB v4.3 + New Features

onclicked button open "new" form

Scheduled Pinned Locked Moved Solved QML and Qt Quick
25 Posts 2 Posters 10.9k Views 2 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.
  • F Offline
    F Offline
    filipdns
    wrote on last edited by
    #21

    Yes less code it s better for me 😉

    mrjjM 1 Reply Last reply
    0
    • F filipdns

      Yes less code it s better for me 😉

      mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #22

      @filipdns
      That goes for most people :)
      Reusing already tested code is just more fun.

      1 Reply Last reply
      0
      • F Offline
        F Offline
        filipdns
        wrote on last edited by
        #23

        onClicked: stackView.push (Qt.resolvedUrl("SliderPage.qml"))

        mrjjM 1 Reply Last reply
        0
        • F filipdns

          onClicked: stackView.push (Qt.resolvedUrl("SliderPage.qml"))

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #24

          @filipdns
          Some text would help understand :)

          1 Reply Last reply
          0
          • F Offline
            F Offline
            filipdns
            wrote on last edited by
            #25

            hello, it's just the way to do what the topic ask ;-)

            import QtQuick 2.2
            import QtQuick.Controls 1.2
            import QtQuick.Controls.Styles 1.1
            Item {
                width: parent.width
                height: parent.height
            
                Column {
                    spacing: 5
                        Button {
                        anchors.margins: 20
                        text: "24"
                        onClicked: stackView.push (Qt.resolvedUrl("SliderPage.qml"))
                    }
            }
            
            1 Reply Last reply
            1

            • Login

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