| Home | ![]() |
The QWinHost class provides an API to use native Win32 windows in Qt applications. More...
#include <qwinhost.h>
QWinHost exists to provide a QWidget that can act as a parent for any native Win32 control. Since QWinHost is a proper QWidget, it can be used as a toplevel widget (e.g. 0 parent) or as a child of any other QWidget.
QWinHost integrates the native control into the Qt user interface, e.g. handles focus switches and laying out.
Applications moving to Qt may have custom Win32 controls that will take time to rewrite with Qt. Such applications can use these custom controls as children of QWinHost widgets. This allows the application's user interface to be replaced gradually.
When the QWinHost is destroyed, and the Win32 window hasn't been set with setWindow(), the window will also be destroyed.
The default implementation returns null. The window returned by a reimplementation of this function is owned by this QWinHost instance and will be destroyed in the destructor.
This function is called by the implementation of polish() if no window has been set explicitly using setWindow(). Call polish() to force this function to be called.
See also setWindow().
This function is called by the Qt framework, and you should not normally need to call it yourself.
See also window() and createWindow().
See also setWindow() and createWindow().
This file is part of the Qt Solutions.
Copyright © 2003-2004
Trolltech. All Rights Reserved.
| Copyright © 2003-2004 Trolltech | Trademarks | Qt Solutions
|