What's the difference between QMainWindow, QWidget and QDialog?
相关问题
- QTextEdit.find() doesn't work in Python
- QT Layouts, how to make widgets in horizontal layo
- How to know that a file was opened ? QT
- How can I listen to a C++ signal from QML?
- how do I specify in qmake 4.5's .pro file that
相关文章
- How to set the font size of the label on pushbutto
- About using an undocumented class in Qt
- Qt - setupUi( ) [duplicate]
- How to make QtLinguist shipped with Qt 5.9.1 work?
- In Qt, how do I align form elements in different g
- Qt Creator fails to start debugging on Mac
- how to use QT graphic view for drawing
- How to obtain debug/release conditional compiling
A
QWidget
is the base class for all drawable classes in Qt. AnyQWidget
-based class can be shown as a window by showing it when it has no parent.A
QDialog
is based onQWidget
, but designed to be shown as a window. It will always appear in a window, and has functions to make it work well with common buttons on dialogs (accept, reject, etc.).QMainWindow
is designed around common needs for a main window to have. It has predefined places for a menu bar, a status bar, a toolbar, and other widgets. It does not have any built-in allowances for buttons likeQDialog
does.