在构造时将QMainWindow的亲代部件设置为0,便可将它嵌入到其它窗口中去。
http://developer.qt.nokia.com/faq/answer/how_can_i_embed_e.g_a_qmainwindow_inside_a_qdialog
亮点:
In order to embed a toplevel window inside another window you need to create the embedded window without a parent and then call setParent() [doc.qt.nokia.com] on it after the embedded window has been constructed.
HxLauncher: Launch Android applications by voice commands