Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Open new window on button click

Open new window on button click

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 3 Posters 640 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.
  • L Offline
    L Offline
    leon missoul
    wrote on last edited by
    #1

    It's a really simple maybe stupid question, but i've been looking for this all day without success.

    I have a main window (main.qml) with a button. When this button is clicked I want to open a new window (window2.qml). I want to do this using the 'onClicked:' component, and found online, to open a window, I can use 'show()', but I have not been successful in combining these two.

    I'm new to this, would love every answer :)

    Thanks in advance.

    JonBJ 1 Reply Last reply
    0
    • L leon missoul

      It's a really simple maybe stupid question, but i've been looking for this all day without success.

      I have a main window (main.qml) with a button. When this button is clicked I want to open a new window (window2.qml). I want to do this using the 'onClicked:' component, and found online, to open a window, I can use 'show()', but I have not been successful in combining these two.

      I'm new to this, would love every answer :)

      Thanks in advance.

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @leon-missoul
      Hi. This, and your previous topics about QML, should all be posted to the QML sub-forum, https://forum.qt.io/category/12/qml-and-qt-quick, for best answers.

      1 Reply Last reply
      0
      • L Offline
        L Offline
        leon missoul
        wrote on last edited by
        #3

        Thanks, I was not aware of that.

        JonBJ 1 Reply Last reply
        1
        • L leon missoul

          Thanks, I was not aware of that.

          JonBJ Offline
          JonBJ Offline
          JonB
          wrote on last edited by JonB
          #4

          @leon-missoul
          That's no problem. I see you have now re-posted this there as https://forum.qt.io/topic/122624/open-new-window-on-button-click.

          1 Reply Last reply
          0
          • L Offline
            L Offline
            leon missoul
            wrote on last edited by
            #5

            Yes, correct.

            Any possible way you can answer it?

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Locking this topic since the other one is in the correct sub-forum.

              Next time please ask a moderator to move it rather than duplicate.

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

              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