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. QDockWidget more like Visual Studio
Forum Updated to NodeBB v4.3 + New Features

QDockWidget more like Visual Studio

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 3 Posters 1.6k 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
    Craftplorer
    wrote on last edited by
    #1

    Hi,
    the dock widgets got an update in 5.6 is there any plan to make it possible so i can dock a widget at the center like in visual studio?

    Qt
    0_1542302591740_nocenter.PNG
    VS
    0_1542302624775_centerdock.PNG

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

      Hi and welcome to devnet,

      You can simply not set any central widget and use only QDockWidgets.

      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
      1
      • VRoninV Offline
        VRoninV Offline
        VRonin
        wrote on last edited by
        #3

        Not totally sure Samuel's solution will work. I would actually suggest to set another QMainWindow as central widget so you can have more dock areas even inside but you'll need to do some magic to reparent the dock to the inner QMainWindow

        "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
        ~Napoleon Bonaparte

        On a crusade to banish setIndexWidget() from the holy land of Qt

        1 Reply Last reply
        1
        • C Offline
          C Offline
          Craftplorer
          wrote on last edited by
          #4

          Thank you both for your answers.
          I found this repo on github and i think this is what im going to use for my porject.
          https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System

          1 Reply Last reply
          1

          • Login

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