Differences between Qwidget , QMainwin and Qdialogue
-
Why don't you read the docs to understand them? The documentation is very extensive.
"Qwidget":http://qt-project.org/doc/qt-4.8/qwidget.html
"QDialog":http://qt-project.org/doc/qt-4.8/qdialog.html
"QMainWindow":http://qt-project.org/doc/qt-4.8/qmainwindow.html -
As prady_80 suggested. Qt docs are really good.
In short:
- QWidget is a base class for all other GUI elements in QtWidgets module. It can constitute a window by itself, or be part of a QLayout, or just a member of parent-child hierarchy
- QDialog is usually used to - surprise! - display a temporary dialog when user input is required
- QMainWindow is a convenience class that can be used as the main window of your application. It has some nice features built-in: a status bar, tool bars and a menu bar.