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. How to set more "windows" in the same Mainwindow?
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved General and Desktop
5 Posts 3 Posters 1.1k Views 1 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.
  • C Offline
    C Offline
    cerro595
    wrote on last edited by
    #1

    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
    0
    • M Offline
      M Offline
      maximus
      wrote on last edited by
      #2

      QStackedWidget will exactly do that


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

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

        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
        0
        • C Offline
          C Offline
          cerro595
          wrote on last edited by
          #4

          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
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            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
            0

            • Login

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