View Full Version : Difference between central Widget and dock Widget
rezas1000
10th August 2014, 18:34
Hi
I want a real example of centralwidget and dockwidget.
In fact,
I know what widget and menubar and toolbar is.!!!!!!!!
But I do not know anything about centralwidget or dockwidget.
Please explain
thanks.
ChrisW67
10th August 2014, 22:06
The central widget is the main content area of a QMainWindow. A QDockWidget is an optional, possibly stackable, possibly undockable, widget that can be placed inside a QMainWindow adjacent to the top, right, bottom or left of the central widget.
Qt has a wide range of examples:
http://qt-project.org/doc/qt-5/qtexamplesandtutorials.html
Including one specifically addressing dock widgets,
http://qt-project.org/doc/qt-5/qtwidgets-mainwindows-dockwidgets-example.html
There is also a large amount of documentation.
http://qt-project.org/doc/
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.