Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    How to set more "windows" in the same Mainwindow?

    General and Desktop
    3
    5
    833
    Loading More Posts
    • 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.
    • C
      cerro595 last edited by

      Hello!
      I am new in Qt and I'm doing a project for an university course. I need to make a window, with a toolbar having some "buttons" which allow me to access different "windows". My general layout should be something like this:
      https://www.dropbox.com/s/kngwarqqxfxrqkg/MyLayout.png?dl=0
      When I press in the folder icon, I must see f.e. open file, show file, or something else. When I press the configuration folder I must see an other window with configurations that must be set.
      I must do something like this:
      https://www.dropbox.com/s/nlwi2o0cowv0ri6/FisrtTab.png?dl=0
      https://www.dropbox.com/s/4un1aty1z84lixo/SecondTab.png?dl=0

      1 Reply Last reply Reply Quote 0
      • M
        maximus last edited by

        QStackedWidget will exactly do that


        Free Indoor Cycling Software - https://maximumtrainer.com

        1 Reply Last reply Reply Quote 0
        • SGaist
          SGaist Lifetime Qt Champion last edited by

          Hi and welcome to devnet,

          You should take a look at QTabWidget, QFileDialog, and maybe QWizard. It will depend on your application workflow

          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 Reply Quote 0
          • C
            cerro595 last edited by

            Do you have any working example of QStackedWidget, please?
            I don't think QWizard might be a solution for my project, although I'm also thinking to use QTabWidget, but how can I rename tabs in Qt Designer?

            1 Reply Last reply Reply Quote 0
            • SGaist
              SGaist Lifetime Qt Champion last edited by

              You have an example in QStackedWidget documentation.

              IIRC, select the tab, go to the Property Editor and look for something like currentTabText

              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 Reply Quote 0
              • First post
                Last post