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. [Solved] Is it possible to have a mainwindow with a frame where i can load other windows?

[Solved] Is it possible to have a mainwindow with a frame where i can load other windows?

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 781 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.
  • B Offline
    B Offline
    babuschkainyouface
    wrote on last edited by
    #1

    is it possible to have a 'mainwindow' with a menu and buttons that do not change.
    on this 'mainwindow' a place like a frame where i can load different windows (QWidget/QDialog) depending on which buttons on the 'mainwindow' was clicked.

    like this : (sorry for the bad sketch)

    @
    mainwindow: (win1 clicked)

    WIN1 win2 win3
    bla bla bla this is win1
    grpbox1 tblvw1 pshbttn1
    --------------------------------------------

    mainwindow: (win2 clicked)

    win1 WIN2 win3
    bla bla bla this is win2
    grpbox2 lnedit1 pshbttn2
    --------------------------------------------

    mainwindow: (win3 clicked)

    win1 win2 WIN3
    bla bla bla this is win3
    img.jpg pshbttn3 label3
    --------------------------------------------

    @

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

      Hi,

      Have a look at QTabWidget, QStackedLayout and QStackedWidget. They're probably what you need

      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
      • B Offline
        B Offline
        babuschkainyouface
        wrote on last edited by
        #3

        thank you - perfect -
        thats exactly what i was searching for -
        thanks

        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