StupidBeauty
Read times:3274Posted at:Fri Nov 18 19:27:52 2011

转载:How can I embed e.g a QMainWindow inside a QDialog ?

在构造时将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.

Your opinions
Your name:Email:Website url:Opinion content:
- no title specified

HxLauncher: Launch Android applications by voice commands