How to have removable tool windows in Qt

I am developing a tool that will have variable sized windows. I can achieve this using horizontal and vertical QSplitter . See Attached Image.

Now, how to make these individual windows removable / maximize / close? How to add cross-markers in the upper right corner of each window so that they can be closed from the maximum or disconnected from there? Just like this link: -

http://vector.com/portal/medien/ecu_testing/tae/test_automation_editor.png

enter image description here

+4
qt qdockwidget
source share
1 answer

You are looking for a QDockWidget class:

The QDockWidget class provides a widget that can be docked inside a QMainWindow or floating as a top-level window on the desktop. QDockWidget provides the concept of a dock widget, also known as a palette tool or utility windows. Dock windows are additional windows in the dock widget area around the central widget in QMainWindow.

Check this example.

+4
source share

All Articles