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. Customizing docking/Programming own docking mechanism
QtWS25 Last Chance

Customizing docking/Programming own docking mechanism

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.6k Views
  • 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.
  • E Offline
    E Offline
    eddyilg
    wrote on last edited by
    #1

    Hi,

    I'd like to realize a dockable application without a central widget, like such:

    XL
    XL
    YL

    Widgets X have fixed size and there can be arbitrarily many. Widget L is one widget, which has fixed width but not height, it spans from top to bottom and can be docked on the left or right. Widget Y has fixed width but not height. The widgets should all be dockable/rearrangeable and the application should only be resizable in Y Direction (resizing L and Y).

    How do I do it?

    I know it's not that simple ;) QMainWindow requires a central widget and the docking policys are limited. I belive I will have to implement my own derivatives of QMainWindow and QDockWidget.

    Where is a good place to start?

    Best regards,

    Eddy

    1 Reply Last reply
    0
    • M Offline
      M Offline
      Mazur
      wrote on last edited by
      #2

      Hi Eddy, I am not sure if I will be correct as I wanted to do similar docking solution to yours but I had no time yet. The idea of where to start would be looking at this documentation page:

      http://doc.qt.nokia.com/4.7-snapshot/dnd.html

      It is all about drag and drop mechanism. I think it would be good to create two types of widgets. One, let's say, it's called DockArea and another one is DockWidget. You could place this DockWidget in one of the DockAreas and reimplement drag and drop for both Widgets so while moving you could actually place those widgets in different widgets. I think it would be the easiest way to start but it's only my idea. Thanks!

      delete this->signature;

      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