PDA

View Full Version : QT programing



bijay
25th March 2012, 09:46
what is difference between in Qwidget and QmainWindow?

wysota
25th March 2012, 10:02
QMainWindow is a subclass of QWidget that adds a menu bar, tool bars, status bar and dock widgets.

Zlatomir
25th March 2012, 10:02
Short answer is: QMainWindow is an specialized QWidget (specialized to be the main-window of an application - it has more "stuff" then QWidget: layout, menu, status-bar, toolbar)
For detailed answer read documentation about QWidget (http://doc.qt.nokia.com/4.7-snapshot/qwidget.html) and QMainWindow (http://doc.qt.nokia.com/4.7-snapshot/qmainwindow.html)

Spitfire
26th March 2012, 09:15
Wow! Great timing you two :)

d_stranz
28th March 2012, 00:13
Wow! Great timing you two :)

Great minds think alike. Sometimes even simultaneously. :D