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 I hide/show whole parts of the QMainWindow?
Forum Updated to NodeBB v4.3 + New Features

How I hide/show whole parts of the QMainWindow?

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 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.
  • SpeederS Offline
    SpeederS Offline
    Speeder
    wrote on last edited by
    #1

    My QMainWindow has basically 2 states.

    In one state, it displays ONLY a file browser, and other related stuff (recent files list, and so on).

    After you choose a file, I want it to show ONLY dock widgets, and disable the central widget.

    I think the logic should be:

    File browser: hide all dock areas (but NOT the widgets, the user might want their hidden/visible status stay as they were before), set the central widget to the file browser.

    File open: hide the central widget, show all dock areas.

    So how I do that?

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

      Hi
      Docks need a central widget.
      They can be docked around it.

      You can however alter the size of it etc.

      So what exactly are you hoping would happen if you could disable it ?

      SpeederS 1 Reply Last reply
      0
      • mrjjM mrjj

        Hi
        Docks need a central widget.
        They can be docked around it.

        You can however alter the size of it etc.

        So what exactly are you hoping would happen if you could disable it ?

        SpeederS Offline
        SpeederS Offline
        Speeder
        wrote on last edited by
        #3

        Well, without a central widget, everything can be docked and undocked from everywhere.

        I found a program that was made with QT, and do what I want partially.

        http://ccso.com/images/win.gif

        Everything on that screenshot is dragable, the functions window, graph, tabs, exports, imports, all of those are dockable, and also become tabs (also, I noticed some stuff docked inside another dock? ie: the exports and imports).

        mrjjM 1 Reply Last reply
        0
        • SpeederS Speeder

          Well, without a central widget, everything can be docked and undocked from everywhere.

          I found a program that was made with QT, and do what I want partially.

          http://ccso.com/images/win.gif

          Everything on that screenshot is dragable, the functions window, graph, tabs, exports, imports, all of those are dockable, and also become tabs (also, I noticed some stuff docked inside another dock? ie: the exports and imports).

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Speeder
          Ok that is cool.
          What is the name of this app ?
          Normally, its not so happy to dock in center.

          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