Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Displaying multiple panels on the same Main window (Qt 4.8)
Forum Updated to NodeBB v4.3 + New Features

Displaying multiple panels on the same Main window (Qt 4.8)

Scheduled Pinned Locked Moved Qt Creator and other tools
4 Posts 2 Posters 1.8k 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.
  • A Offline
    A Offline
    ArunRai12
    wrote on 12 Apr 2014, 19:05 last edited by
    #1

    I have a Main window and I want to create different panels such as diolog box but I want to display them on the same Main window one at a time , (not as a separate window). How would I do this ?

    For example I have three actions in one menu each opens different panel when clicked. Now, when I click on one action, I want to display the panel on the Main window.

    Thanks in advance.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 12 Apr 2014, 19:29 last edited by
      #2

      Hi,

      When clicking on the action do you only show one panel ? If so look at "QStackedWidget":http://qt-project.org/doc/qt-4.8/qstackedwidget.html

      If not, "QDockWidget":http://qt-project.org/doc/qt-4.8/qdockwidget.html

      Hope it helps

      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
      • A Offline
        A Offline
        ArunRai12
        wrote on 12 Apr 2014, 19:46 last edited by
        #3

        Yes, but I want the panel to be shown from inside the Main window without hiding basic features such as menu bar and title of the Main window.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 12 Apr 2014, 19:50 last edited by
          #4

          Then use QStackedWidget as main widget of your QMainWindow

          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

          1/4

          12 Apr 2014, 19:05

          • Login

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