3ds Max C++ API Reference
|
Simple widget that can host a native win32 window. More...
#include <QMaxWinHost.h>
Signals | |
void | hostedWindowChanged (HWND newHWND, HWND oldHWND) |
Gets emitted, if the native window that is hosted by this widget has been changed. More... | |
Public Member Functions | |
QMaxWinHost (HWND hwnd, QWidget *parent=nullptr) | |
QMaxWinHost (QWidget *parent=nullptr, Qt::WindowFlags f={}) | |
~QMaxWinHost () override | |
void | setHostedWindow (HWND hwnd) |
Sets the native window that is hosted by this widget. More... | |
HWND | hostedWindow () const |
Returns the native window that is hosted by this widget. More... | |
Protected Member Functions | |
void | resizeEvent (QResizeEvent *event) override |
void | moveEvent (QMoveEvent *event) override |
void | focusInEvent (QFocusEvent *event) override |
void | showEvent (QShowEvent *event) override |
void | hideEvent (QHideEvent *event) override |
bool | event (QEvent *event) override |
bool | nativeEvent (const QByteArray &eventType, void *msg, long *result) override |
Simple widget that can host a native win32 window.
This class is used to embed non-qt windows into the Qt window framework. It will take care of basic things like moving/resizing the hosted window when the winHost container changes its geometry.
|
explicit |
|
explicit |
|
override |
void setHostedWindow | ( | HWND | hwnd | ) |
Sets the native window that is hosted by this widget.
The native window will be re-parented as child of this widget. If the window has been changed, a hostedWindowChanged signal will be emitted containing the new HWND as well as the old one.
HWND hostedWindow | ( | ) | const |
Returns the native window that is hosted by this widget.
|
signal |
Gets emitted, if the native window that is hosted by this widget has been changed.
newHWND | the new HWND inside this object |
oldHWND | the previous HWND used by this object before |
|
overrideprotected |
|
overrideprotected |
|
overrideprotected |
|
overrideprotected |
|
overrideprotected |
|
overrideprotected |
|
overrideprotected |