| Home | ![]() |
The QWinWidget class is a Qt widget that can be child of a native Win32 widget. More...
#include <qwinwidget.h>
The QWinWidget class is the bridge between an existing application user interface developed using native Win32 APIs or toolkits like MFC, and Qt based GUI elements.
Using QWinWidget as the parent of QDialogs will ensure that modality, placement and stacking works properly throughout the entire application. If the child widget is a top level window that uses the WDestructiveClose flag, QWinWidget will destroy itself when the child window closes down.
Applications moving to Qt can use QWinWidget to add new functionality, and gradually replace the existing interface.
The object has a default background mode of NoBackground.
If no parent window has been set yet, or if that window cannot have a menu bar this function returns 0.
Example: win32/main.cpp.
QWinWidget qwin( hParent );
qwin.showCentered();
QMessageBox::information( &qwin, "Caption", "Information Text" );
This will center the message box over the client area of hParent.
Examples: qtdll/main.cpp, step3/qtmfc.cpp, and win32/main.cpp.
This file is part of the Qt Solutions.
Copyright © 2003-2004
Trolltech. All Rights Reserved.
| Copyright © 2003-2004 Trolltech | Trademarks | Qt Solutions
|