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. How to navigate from current page to next page in a button click in qtquick?
Forum Updated to NodeBB v4.3 + New Features

How to navigate from current page to next page in a button click in qtquick?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
4 Posts 3 Posters 2.5k 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.
  • R Offline
    R Offline
    Rasna Musthafa
    wrote on last edited by
    #1
    This post is deleted!
    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      You should give a more detailed discussion. There's no way with your post to know what you are talking about. Creating a wizard ? Web navigation ? Something else ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      R 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi and welcome to devnet,

        You should give a more detailed discussion. There's no way with your post to know what you are talking about. Creating a wizard ? Web navigation ? Something else ?

        R Offline
        R Offline
        Rasna Musthafa
        wrote on last edited by
        #3
        This post is deleted!
        1 Reply Last reply
        0
        • jeremy_kJ Online
          jeremy_kJ Online
          jeremy_k
          wrote on last edited by jeremy_k
          #4

          I usually handle this with a root Loader that exposes a function or has its component directly changed by each page request.

          main.qml

          Window {
              Loader {
                  source: "file://StartPage.qml"
              }
          }
          

          StartPage.qml

          Item {
              id: root
              Button { onClicked: root.parent.setSource("file://SecondPage.qml") }
          }
          

          Asking a question about code? http://eel.is/iso-c++/testcase/

          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