Qyoto
4.0.5
Qyoto is a C# language binding for Qt
|
The QGraphicsProxyWidget class provides a proxy layer for embedding a QWidget in a QGraphicsScene. More...
Public Member Functions | |
QGraphicsProxyWidget (IQGraphicsItem parent=null, Qt.WindowType wFlags=0) | |
| |
override void | CreateProxy () |
new QGraphicsProxyWidget | CreateProxyForChildWidget (QWidget child) |
| |
override bool | OnEvent (QEvent @event) |
| |
override bool | EventFilter (QObject @object, QEvent @event) |
| |
override void | Paint (QPainter painter, QStyleOptionGraphicsItem option, QWidget widget) |
| |
new QRectF | SubWidgetRect (QWidget widget) |
| |
override int | Type () |
| |
new void | Dispose () |
Public Member Functions inherited from QtGui.QGraphicsWidget | |
QGraphicsWidget (IQGraphicsItem parent=null, Qt.WindowType wFlags=0) | |
| |
override void | CreateProxy () |
new System.Collections.Generic.List < QAction > | Actions () |
| |
new void | AddAction (QAction action) |
| |
new void | AddActions (System.Collections.Generic.List< QAction > actions) |
| |
new void | AdjustSize () |
| |
override QRectF | BoundingRect () |
| |
new System.Collections.Generic.List < QObject > | Children () |
new bool | Close () |
| |
override bool | OnEvent (QEvent @event) |
| |
new QGraphicsWidget | FocusWidget () |
| |
virtual void | GetContentsMargins (ref double left, ref double top, ref double right, ref double bottom) |
| |
new void | GetWindowFrameMargins (ref double left, ref double top, ref double right, ref double bottom) |
| |
new int | GrabShortcut (QKeySequence sequence, Qt.ShortcutContext context=Qt.ShortcutContext.WindowShortcut) |
| |
new void | InsertAction (QAction before, QAction action) |
| |
new void | InsertActions (QAction before, System.Collections.Generic.List< QAction > actions) |
| |
new bool | IsActiveWindow () |
| |
override void | Paint (QPainter painter, QStyleOptionGraphicsItem option, QWidget widget=null) |
| |
virtual void | PaintWindowFrame (QPainter painter, QStyleOptionGraphicsItem option, QWidget widget=null) |
| |
new QRectF | Rect () |
| |
new void | ReleaseShortcut (int id) |
| |
new void | RemoveAction (QAction action) |
| |
new void | Resize (double w, double h) |
new void | SetAttribute (Qt.WidgetAttribute attribute, bool on=true) |
| |
new void | SetContentsMargins (double left, double top, double right, double bottom) |
| |
new void | SetGeometry (double x, double y, double w, double h) |
new void | SetShortcutAutoRepeat (int id, bool enabled=true) |
| |
new void | SetShortcutEnabled (int id, bool enabled=true) |
| |
new void | SetWindowFlags (Qt.WindowType wFlags) |
new void | SetWindowFrameMargins (double left, double top, double right, double bottom) |
| |
override QPainterPath | Shape () |
| |
new bool | TestAttribute (Qt.WidgetAttribute attribute) |
| |
override int | Type () |
| |
new void | UnsetLayoutDirection () |
new void | UnsetWindowFrameMargins () |
| |
virtual void | UpdateGeometry () |
| |
new Qt.WindowType | windowFlags () |
new QRectF | WindowFrameGeometry () |
| |
new QRectF | WindowFrameRect () |
| |
new Qt.WindowType | WindowType () |
| |
new void | Dispose () |
new QRectF | ContentsRect () |
new QSizeF | EffectiveSizeHint (Qt.SizeHint which) |
new QSizeF | EffectiveSizeHint (Qt.SizeHint which, QSizeF constraint) |
new IQGraphicsItem | GraphicsItem () |
new bool | IsLayout () |
new bool | OwnedByLayout () |
new void | SetMaximumSize (double w, double h) |
new void | SetMinimumSize (double w, double h) |
new void | SetPreferredSize (double w, double h) |
new void | SetSizePolicy (QSizePolicy.Policy hPolicy, QSizePolicy.Policy vPolicy, QSizePolicy.ControlType controlType=QSizePolicy.ControlType.DefaultType) |
Public Member Functions inherited from QtGui.QGraphicsObject | |
QGraphicsObject (IQGraphicsItem parent=null) | |
| |
new System.Collections.Generic.List < QObject > | Children () |
new void | GrabGesture (Qt.GestureType type, Qt.GestureFlag flags=0) |
| |
new void | UngrabGesture (Qt.GestureType type) |
| |
new void | Dispose () |
virtual void | Advance (int phase) |
new QRegion | BoundingRegion (QTransform itemToDeviceTransform) |
new System.Collections.Generic.List < IQGraphicsItem > | ChildItems () |
new QRectF | ChildrenBoundingRect () |
new void | ClearFocus () |
new QPainterPath | ClipPath () |
virtual bool | CollidesWithItem (IQGraphicsItem other, Qt.ItemSelectionMode mode=Qt.ItemSelectionMode.IntersectsItemShape) |
virtual bool | CollidesWithPath (QPainterPath path, Qt.ItemSelectionMode mode=Qt.ItemSelectionMode.IntersectsItemShape) |
new System.Collections.Generic.List < IQGraphicsItem > | CollidingItems (Qt.ItemSelectionMode mode=Qt.ItemSelectionMode.IntersectsItemShape) |
new IQGraphicsItem | CommonAncestorItem (IQGraphicsItem other) |
virtual bool | Contains (QPointF point) |
new object | Data (int key) |
new QTransform | DeviceTransform (QTransform viewportTransform) |
new double | EffectiveOpacity () |
new void | EnsureVisible () |
new void | EnsureVisible (QRectF rect, int xmargin=50, int ymargin=50) |
new void | EnsureVisible (double x, double y, double w, double h, int xmargin=50, int ymargin=50) |
new IQGraphicsItem | FocusItem () |
new IQGraphicsItem | FocusScopeItem () |
new void | GrabKeyboard () |
new void | GrabMouse () |
new bool | HasCursor () |
new bool | HasFocus () |
new void | Hide () |
new void | InstallSceneEventFilter (IQGraphicsItem filterItem) |
new bool | IsActive () |
new bool | IsAncestorOf (IQGraphicsItem child) |
new bool | IsBlockedByModalPanel (IQGraphicsItem blockingPanel=null) |
new bool | IsClipped () |
new bool | IsEnabled () |
new bool | IsObscured () |
new bool | IsObscured (QRectF rect) |
new bool | IsObscured (double x, double y, double w, double h) |
virtual bool | IsObscuredBy (IQGraphicsItem item) |
new bool | IsPanel () |
new bool | IsSelected () |
new bool | IsUnderMouse () |
new bool | IsVisible () |
new bool | IsVisibleTo (IQGraphicsItem parent) |
new bool | IsWidget () |
new bool | IsWindow () |
new QTransform | ItemTransform (IQGraphicsItem other) |
new QTransform | ItemTransform (IQGraphicsItem other, ref bool ok) |
new QPointF | MapFromItem (IQGraphicsItem item, QPointF point) |
new QPolygonF | MapFromItem (IQGraphicsItem item, QRectF rect) |
new QPolygonF | MapFromItem (IQGraphicsItem item, QPolygonF polygon) |
new QPainterPath | MapFromItem (IQGraphicsItem item, QPainterPath path) |
new QPointF | MapFromItem (IQGraphicsItem item, double x, double y) |
new QPolygonF | MapFromItem (IQGraphicsItem item, double x, double y, double w, double h) |
new QPointF | MapFromParent (QPointF point) |
new QPolygonF | MapFromParent (QRectF rect) |
new QPolygonF | MapFromParent (QPolygonF polygon) |
new QPainterPath | MapFromParent (QPainterPath path) |
new QPointF | MapFromParent (double x, double y) |
new QPolygonF | MapFromParent (double x, double y, double w, double h) |
new QPointF | MapFromScene (QPointF point) |
new QPolygonF | MapFromScene (QRectF rect) |
new QPolygonF | MapFromScene (QPolygonF polygon) |
new QPainterPath | MapFromScene (QPainterPath path) |
new QPointF | MapFromScene (double x, double y) |
new QPolygonF | MapFromScene (double x, double y, double w, double h) |
new QRectF | MapRectFromItem (IQGraphicsItem item, QRectF rect) |
new QRectF | MapRectFromItem (IQGraphicsItem item, double x, double y, double w, double h) |
new QRectF | MapRectFromParent (QRectF rect) |
new QRectF | MapRectFromParent (double x, double y, double w, double h) |
new QRectF | MapRectFromScene (QRectF rect) |
new QRectF | MapRectFromScene (double x, double y, double w, double h) |
new QRectF | MapRectToItem (IQGraphicsItem item, QRectF rect) |
new QRectF | MapRectToItem (IQGraphicsItem item, double x, double y, double w, double h) |
new QRectF | MapRectToParent (QRectF rect) |
new QRectF | MapRectToParent (double x, double y, double w, double h) |
new QRectF | MapRectToScene (QRectF rect) |
new QRectF | MapRectToScene (double x, double y, double w, double h) |
new QPointF | MapToItem (IQGraphicsItem item, QPointF point) |
new QPolygonF | MapToItem (IQGraphicsItem item, QRectF rect) |
new QPolygonF | MapToItem (IQGraphicsItem item, QPolygonF polygon) |
new QPainterPath | MapToItem (IQGraphicsItem item, QPainterPath path) |
new QPointF | MapToItem (IQGraphicsItem item, double x, double y) |
new QPolygonF | MapToItem (IQGraphicsItem item, double x, double y, double w, double h) |
new QPointF | MapToParent (QPointF point) |
new QPolygonF | MapToParent (QRectF rect) |
new QPolygonF | MapToParent (QPolygonF polygon) |
new QPainterPath | MapToParent (QPainterPath path) |
new QPointF | MapToParent (double x, double y) |
new QPolygonF | MapToParent (double x, double y, double w, double h) |
new QPointF | MapToScene (QPointF point) |
new QPolygonF | MapToScene (QRectF rect) |
new QPolygonF | MapToScene (QPolygonF polygon) |
new QPainterPath | MapToScene (QPainterPath path) |
new QPointF | MapToScene (double x, double y) |
new QPolygonF | MapToScene (double x, double y, double w, double h) |
new void | MoveBy (double dx, double dy) |
virtual QPainterPath | OpaqueArea () |
new IQGraphicsItem | Panel () |
new QGraphicsObject | ParentObject () |
new QGraphicsWidget | ParentWidget () |
new void | RemoveSceneEventFilter (IQGraphicsItem filterItem) |
new void | ResetMatrix () |
new void | ResetTransform () |
new void | Rotate (double angle) |
new double | Scale () |
new void | Scale (double sx, double sy) |
new QGraphicsScene | Scene () |
new QRectF | SceneBoundingRect () |
new QMatrix | SceneMatrix () |
new QPointF | ScenePos () |
new QTransform | SceneTransform () |
new void | Scroll (double dx, double dy) |
new void | Scroll (double dx, double dy, QRectF rect) |
new void | SetActive (bool active) |
new void | SetCacheMode (QGraphicsItem.CacheMode mode, QSize cacheSize) |
new void | SetData (int key, object value) |
new void | SetEnabled (bool enabled) |
new void | SetFlag (QGraphicsItem.GraphicsItemFlag flag, bool enabled=true) |
new void | SetFocus (Qt.FocusReason focusReason=Qt.FocusReason.OtherFocusReason) |
new void | SetMatrix (QMatrix matrix, bool combine=false) |
new void | SetPos (double x, double y) |
new void | SetScale (double scale) |
new void | SetSelected (bool selected) |
new void | SetTransform (QTransform matrix, bool combine=false) |
new void | SetTransformOriginPoint (double ax, double ay) |
new void | SetVisible (bool visible) |
new void | Shear (double sh, double sv) |
new void | Show () |
new void | StackBefore (IQGraphicsItem sibling) |
new QGraphicsObject | ToGraphicsObject () |
new IQGraphicsItem | TopLevelItem () |
new QGraphicsWidget | TopLevelWidget () |
new void | Translate (double dx, double dy) |
new void | UngrabKeyboard () |
new void | UngrabMouse () |
new void | UnsetCursor () |
new void | Update () |
new void | Update (QRectF rect) |
new void | Update (double x, double y, double width, double height) |
new QGraphicsWidget | Window () |
Public Member Functions inherited from QtCore.QObject | |
QObject (QObject parent=null) | |
| |
new bool | BlockSignals (bool b) |
| |
new System.Collections.Generic.List < QObject > | Children () |
| |
new bool | Connect (QObject sender, string signal, string member, Qt.ConnectionType type=Qt.ConnectionType.AutoConnection) |
| |
new void | DeleteLater () |
| |
new bool | Disconnect (QObject receiver, string member=null) |
| |
new bool | Disconnect (string signal=null, QObject receiver=null, string member=null) |
| |
new void | DumpObjectInfo () |
| |
new void | DumpObjectTree () |
| |
new System.Collections.Generic.List < QByteArray > | DynamicPropertyNames () |
| |
virtual bool | OnEvent (QEvent arg1) |
| |
virtual bool | EventFilter (QObject arg1, QEvent arg2) |
| |
new bool | Inherits (string classname) |
| |
new void | InstallEventFilter (QObject arg1) |
| |
new bool | IsWidgetType () |
| |
new void | KillTimer (int id) |
| |
new object | Property (string name) |
| |
new void | RemoveEventFilter (QObject arg1) |
| |
new bool | SetProperty (string name, object value) |
| |
new void | SetUserData (uint id, QObjectUserData data) |
new bool | SignalsBlocked () |
| |
new int | StartTimer (int interval) |
| |
new QObjectUserData | UserData (uint id) |
new void | Dispose () |
Public Member Functions inherited from QtCore.Qt | |
delegate QTextStream | FuncQTextStreamQTextStream (QTextStream qTextStream) |
delegate string | FuncStringQByteArray (QByteArray qByteArray) |
delegate QByteArray | FuncQByteArrayString (string @string) |
delegate void | ActionQtMsgTypeString (QtMsgType qtMsgType, string @string) |
delegate QObject | FuncQObject () |
Public Member Functions inherited from QtGui.IQGraphicsItem | |
void | Advance (int phase) |
QRectF | BoundingRect () |
new QRegion | BoundingRegion (QTransform itemToDeviceTransform) |
new System.Collections.Generic.List < IQGraphicsItem > | ChildItems () |
new System.Collections.Generic.List < IQGraphicsItem > | Children () |
new QRectF | ChildrenBoundingRect () |
new void | ClearFocus () |
new QPainterPath | ClipPath () |
bool | CollidesWithItem (IQGraphicsItem other, Qt.ItemSelectionMode mode=Qt.ItemSelectionMode.IntersectsItemShape) |
bool | CollidesWithPath (QPainterPath path, Qt.ItemSelectionMode mode=Qt.ItemSelectionMode.IntersectsItemShape) |
new System.Collections.Generic.List < IQGraphicsItem > | CollidingItems (Qt.ItemSelectionMode mode=Qt.ItemSelectionMode.IntersectsItemShape) |
new IQGraphicsItem | CommonAncestorItem (IQGraphicsItem other) |
bool | Contains (QPointF point) |
new object | Data (int key) |
new QTransform | DeviceTransform (QTransform viewportTransform) |
new double | EffectiveOpacity () |
new void | EnsureVisible () |
new void | EnsureVisible (QRectF rect, int xmargin=50, int ymargin=50) |
new void | EnsureVisible (double x, double y, double w, double h, int xmargin=50, int ymargin=50) |
new IQGraphicsItem | FocusItem () |
new IQGraphicsItem | FocusScopeItem () |
new void | GrabKeyboard () |
new void | GrabMouse () |
new bool | HasCursor () |
new bool | HasFocus () |
new void | Hide () |
new void | InstallSceneEventFilter (IQGraphicsItem filterItem) |
new bool | IsActive () |
new bool | IsAncestorOf (IQGraphicsItem child) |
new bool | IsBlockedByModalPanel (IQGraphicsItem blockingPanel=null) |
new bool | IsClipped () |
new bool | IsEnabled () |
new bool | IsObscured () |
new bool | IsObscured (QRectF rect) |
new bool | IsObscured (double x, double y, double w, double h) |
bool | IsObscuredBy (IQGraphicsItem item) |
new bool | IsPanel () |
new bool | IsSelected () |
new bool | IsUnderMouse () |
new bool | IsVisible () |
new bool | IsVisibleTo (IQGraphicsItem parent) |
new bool | IsWidget () |
new bool | IsWindow () |
new QTransform | ItemTransform (IQGraphicsItem other) |
new QTransform | ItemTransform (IQGraphicsItem other, ref bool ok) |
new QPolygonF | MapFromItem (IQGraphicsItem item, QRectF rect) |
new QPainterPath | MapFromItem (IQGraphicsItem item, QPainterPath path) |
new QPointF | MapFromItem (IQGraphicsItem item, QPointF point) |
new QPolygonF | MapFromItem (IQGraphicsItem item, QPolygonF polygon) |
new QPointF | MapFromItem (IQGraphicsItem item, double x, double y) |
new QPolygonF | MapFromItem (IQGraphicsItem item, double x, double y, double w, double h) |
new QPolygonF | MapFromParent (QPolygonF polygon) |
new QPolygonF | MapFromParent (QRectF rect) |
new QPainterPath | MapFromParent (QPainterPath path) |
new QPointF | MapFromParent (QPointF point) |
new QPointF | MapFromParent (double x, double y) |
new QPolygonF | MapFromParent (double x, double y, double w, double h) |
new QPolygonF | MapFromScene (QPolygonF polygon) |
new QPolygonF | MapFromScene (QRectF rect) |
new QPainterPath | MapFromScene (QPainterPath path) |
new QPointF | MapFromScene (QPointF point) |
new QPointF | MapFromScene (double x, double y) |
new QPolygonF | MapFromScene (double x, double y, double w, double h) |
new QRectF | MapRectFromItem (IQGraphicsItem item, QRectF rect) |
new QRectF | MapRectFromItem (IQGraphicsItem item, double x, double y, double w, double h) |
new QRectF | MapRectFromParent (QRectF rect) |
new QRectF | MapRectFromParent (double x, double y, double w, double h) |
new QRectF | MapRectFromScene (QRectF rect) |
new QRectF | MapRectFromScene (double x, double y, double w, double h) |
new QRectF | MapRectToItem (IQGraphicsItem item, QRectF rect) |
new QRectF | MapRectToItem (IQGraphicsItem item, double x, double y, double w, double h) |
new QRectF | MapRectToParent (QRectF rect) |
new QRectF | MapRectToParent (double x, double y, double w, double h) |
new QRectF | MapRectToScene (QRectF rect) |
new QRectF | MapRectToScene (double x, double y, double w, double h) |
new QPainterPath | MapToItem (IQGraphicsItem item, QPainterPath path) |
new QPolygonF | MapToItem (IQGraphicsItem item, QRectF rect) |
new QPolygonF | MapToItem (IQGraphicsItem item, QPolygonF polygon) |
new QPointF | MapToItem (IQGraphicsItem item, QPointF point) |
new QPointF | MapToItem (IQGraphicsItem item, double x, double y) |
new QPolygonF | MapToItem (IQGraphicsItem item, double x, double y, double w, double h) |
new QPolygonF | MapToParent (QPolygonF polygon) |
new QPainterPath | MapToParent (QPainterPath path) |
new QPointF | MapToParent (QPointF point) |
new QPolygonF | MapToParent (QRectF rect) |
new QPointF | MapToParent (double x, double y) |
new QPolygonF | MapToParent (double x, double y, double w, double h) |
new QPolygonF | MapToScene (QPolygonF polygon) |
new QPointF | MapToScene (QPointF point) |
new QPainterPath | MapToScene (QPainterPath path) |
new QPolygonF | MapToScene (QRectF rect) |
new QPointF | MapToScene (double x, double y) |
new QPolygonF | MapToScene (double x, double y, double w, double h) |
new void | MoveBy (double dx, double dy) |
QPainterPath | OpaqueArea () |
void | Paint (QPainter painter, QStyleOptionGraphicsItem option, QWidget widget=null) |
new IQGraphicsItem | Panel () |
new QGraphicsObject | ParentObject () |
new QGraphicsWidget | ParentWidget () |
new void | RemoveSceneEventFilter (IQGraphicsItem filterItem) |
new void | ResetMatrix () |
new void | ResetTransform () |
new void | Rotate (double angle) |
new double | Scale () |
new void | Scale (double sx, double sy) |
new QGraphicsScene | Scene () |
new QRectF | SceneBoundingRect () |
new QMatrix | SceneMatrix () |
new QPointF | ScenePos () |
new QTransform | SceneTransform () |
new void | Scroll (double dx, double dy) |
new void | Scroll (double dx, double dy, QRectF rect) |
new void | SetActive (bool active) |
new void | SetCacheMode (QGraphicsItem.CacheMode mode, QSize cacheSize) |
new void | SetData (int key, object value) |
new void | SetEnabled (bool enabled) |
new void | SetFlag (QGraphicsItem.GraphicsItemFlag flag, bool enabled=true) |
new void | SetFocus (Qt.FocusReason focusReason=Qt.FocusReason.OtherFocusReason) |
new void | SetMatrix (QMatrix matrix, bool combine=false) |
new void | SetPos (double x, double y) |
new void | SetScale (double scale) |
new void | SetSelected (bool selected) |
new void | SetTransform (QTransform matrix, bool combine=false) |
new void | SetTransformOriginPoint (double ax, double ay) |
new void | SetVisible (bool visible) |
QPainterPath | Shape () |
new void | Shear (double sh, double sv) |
new void | Show () |
new void | StackBefore (IQGraphicsItem sibling) |
new QGraphicsObject | ToGraphicsObject () |
new IQGraphicsItem | TopLevelItem () |
new QGraphicsWidget | TopLevelWidget () |
new void | Translate (double dx, double dy) |
int | Type () |
new void | UngrabKeyboard () |
new void | UngrabMouse () |
new void | UnsetCursor () |
new void | Update () |
new void | Update (QRectF rect) |
new void | Update (double x, double y, double width, double height) |
new QGraphicsWidget | Window () |
Public Member Functions inherited from QtGui.IQGraphicsLayoutItem | |
new QRectF | ContentsRect () |
new QSizeF | EffectiveSizeHint (Qt.SizeHint which) |
new QSizeF | EffectiveSizeHint (Qt.SizeHint which, QSizeF constraint) |
void | GetContentsMargins (ref double left, ref double top, ref double right, ref double bottom) |
new IQGraphicsItem | GraphicsItem () |
new bool | IsLayout () |
new bool | OwnedByLayout () |
new void | SetMaximumSize (double w, double h) |
new void | SetMinimumSize (double w, double h) |
new void | SetPreferredSize (double w, double h) |
new void | SetSizePolicy (QSizePolicy.Policy hPolicy, QSizePolicy.Policy vPolicy, QSizePolicy.ControlType controlType=QSizePolicy.ControlType.DefaultType) |
void | UpdateGeometry () |
Static Public Member Functions | |
static string | Tr (string s, string c=null) |
static string | Tr (string s, string c, int n) |
static string | TrUtf8 (string s, string c=null) |
static string | TrUtf8 (string s, string c, int n) |
Static Public Member Functions inherited from QtGui.QGraphicsWidget | |
static void | SetTabOrder (QGraphicsWidget first, QGraphicsWidget second) |
| |
static string | Tr (string s, string c=null) |
static string | Tr (string s, string c, int n) |
static string | TrUtf8 (string s, string c=null) |
static string | TrUtf8 (string s, string c, int n) |
Static Public Member Functions inherited from QtGui.QGraphicsObject | |
static string | Tr (string s, string c=null) |
static string | Tr (string s, string c, int n) |
static string | TrUtf8 (string s, string c=null) |
static string | TrUtf8 (string s, string c, int n) |
Static Public Member Functions inherited from QtCore.QObject | |
static bool | Connect (QObject sender, QMetaMethod signal, QObject receiver, QMetaMethod method, Qt.ConnectionType type=Qt.ConnectionType.AutoConnection) |
| |
static bool | Connect (QObject sender, string signal, QObject receiver, string member, Qt.ConnectionType arg5=Qt.ConnectionType.AutoConnection) |
| |
static bool | Disconnect (QObject sender, QMetaMethod signal, QObject receiver, QMetaMethod member) |
| |
static bool | Disconnect (QObject sender, string signal, QObject receiver, string member) |
| |
static uint | RegisterUserData () |
static string | Tr (string s, string c=null) |
| |
static string | Tr (string s, string c, int n) |
| |
static string | TrUtf8 (string s, string c=null) |
| |
static string | TrUtf8 (string s, string c, int n) |
| |
Static Public Member Functions inherited from QtCore.Qt | |
static QDataStream | Write (QDataStream s, object p) |
static QDataStream | Write (QDataStream arg1, QSizeF arg2) |
static QTextStream | Write (QTextStream s, Qt.FuncQTextStreamQTextStream f) |
static QDataStream | Write (QDataStream arg1, QPoint arg2) |
static QDataStream | Write (QDataStream arg1, QLineF arg2) |
static QDataStream | Write (QDataStream arg1, QPointF arg2) |
static QDataStream | Write (QDataStream arg1, QChar arg2) |
static QDataStream | Write (QDataStream arg1, QByteArray arg2) |
static QDataStream | Write (QDataStream arg1, QEasingCurve arg2) |
static QDataStream | Write (QDataStream arg1, QRectF arg2) |
static QDataStream | Write (QDataStream arg1, QDateTime arg2) |
static QDataStream | Write (QDataStream arg1, QUrl arg2) |
static QDataStream | Write (QDataStream arg1, QTime arg2) |
static QDataStream | Write (QDataStream arg1, QLocale arg2) |
static QDataStream | Write (QDataStream arg1, QBitArray arg2) |
static QDataStream | Write (QDataStream arg1, QUuid arg2) |
static QDataStream | Write (QDataStream arg1, QLine arg2) |
static QDataStream | Write (QDataStream arg1, QDate arg2) |
static QDataStream | Write (QDataStream @out, QRegExp regExp) |
static QDataStream | Write (QDataStream arg1, QRect arg2) |
static QDataStream | Write (QDataStream arg1, QSize arg2) |
static QDataStream | Write (QDataStream s, QVariant.Type p) |
static QDataStream | Write (QDataStream arg1, string arg2) |
static QDataStream | Write (QDataStream @out, System.Collections.Generic.List< string > list) |
static QDataStream | Read (QDataStream arg1, QChar arg2) |
static QDataStream | Read (QDataStream arg1, QLocale arg2) |
static QDataStream | Read (QDataStream arg1, QRect arg2) |
static QDataStream | Read (QDataStream arg1, QEasingCurve arg2) |
static QDataStream | Read (QDataStream arg1, QDate arg2) |
static QDataStream | Read (QDataStream arg1, QUrl arg2) |
static QDataStream | Read (QDataStream arg1, QUuid arg2) |
static QTextStream | Read (QTextStream s, Qt.FuncQTextStreamQTextStream f) |
static QDataStream | Read (QDataStream arg1, QLineF arg2) |
static QDataStream | Read (QDataStream arg1, QRectF arg2) |
static QDataStream | Read (QDataStream arg1, QPointF arg2) |
static QDataStream | Read (QDataStream arg1, QLine arg2) |
static QDataStream | Read (QDataStream arg1, QBitArray arg2) |
static QDataStream | Read (QDataStream arg1, QSize arg2) |
static QDataStream | Read (QDataStream arg1, QDateTime arg2) |
static QDataStream | Read (QDataStream arg1, QTime arg2) |
static QDataStream | Read (QDataStream arg1, QPoint arg2) |
static QDataStream | Read (QDataStream @in, QRegExp regExp) |
static QDataStream | Read (QDataStream s, object p) |
static QDataStream | Read (QDataStream arg1, QByteArray arg2) |
static QDataStream | Read (QDataStream arg1, QSizeF arg2) |
static QDataStream | Read (QDataStream arg1, string arg2) |
static QDataStream | Read (QDataStream s, QVariant.Type p) |
static QDataStream | Read (QDataStream @in, System.Collections.Generic.List< string > list) |
static double | qAcos (double v) |
static void | qAddPostRoutine (System.Action arg1) |
static string | qAppName () |
static double | qAsin (double v) |
static double | qAtan (double v) |
static double | qAtan2 (double x, double y) |
static void | qBadAlloc () |
static int | qCeil (double v) |
static ushort | qChecksum (string s, uint len) |
static QByteArray | qCompress (QByteArray data) |
static QByteArray | qCompress (QByteArray data, int compressionLevel=-1) |
static QByteArray | qCompress (Pointer< byte > data, int nbytes) |
static QByteArray | qCompress (Pointer< byte > data, int nbytes, int compressionLevel=-1) |
static double | qCos (double v) |
static double | qExp (double v) |
static double | qFabs (double v) |
static double | qFastCos (double x) |
static double | qFastSin (double x) |
static string | qFlagLocation (string method) |
static int | qFloor (double v) |
static bool | qFuzzyCompare (double p1, double p2) |
static bool | qFuzzyCompare (float p1, float p2) |
static bool | qFuzzyIsNull (double d) |
static bool | qFuzzyIsNull (float f) |
static uint | qHash (QBitArray key) |
static uint | qHash (QChar key) |
static uint | qHash (QStringRef key) |
static uint | qHash (QUrl url) |
static uint | qHash (QPersistentModelIndex index) |
static uint | qHash (QByteArray key) |
static uint | qHash (QModelIndex index) |
static uint | qHash (uint key) |
static uint | qHash (sbyte key) |
static uint | qHash (byte key) |
static uint | qHash (short key) |
static uint | qHash (NativeLong key) |
static uint | qHash (ushort key) |
static uint | qHash (long key) |
static uint | qHash (ulong key) |
static uint | qHash (int key) |
static uint | qHash (string key) |
static uint | qHash (NativeULong key) |
static double | qInf () |
static Qt.ActionQtMsgTypeString | qInstallMsgHandler (Qt.ActionQtMsgTypeString arg1) |
static int | qIntCast (float f) |
static int | qIntCast (double f) |
static bool | qIsFinite (double d) |
static bool | qIsFinite (float f) |
static bool | qIsInf (float f) |
static bool | qIsInf (double d) |
static bool | qIsNaN (float f) |
static bool | qIsNaN (double d) |
static bool | qIsNull (float f) |
static bool | qIsNull (double d) |
static double | qLn (double v) |
static double | qPow (double x, double y) |
static double | qQNaN () |
static void | qRegisterStaticPluginInstanceFunction (Qt.FuncQObject function) |
static void | qRemovePostRoutine (System.Action arg1) |
static int | qRound (double d) |
static long | qRound64 (double d) |
static double | qSNaN () |
static bool | qSharedBuild () |
static double | qSin (double v) |
static double | qSqrt (double v) |
static bool | qStringComparisonHelper (QStringRef s1, string s2) |
static double | qTan (double v) |
static QByteArray | qUncompress (QByteArray data) |
static QByteArray | qUncompress (Pointer< byte > data, int nbytes) |
static string | qVersion () |
static void | Qbswap_helper (Pointer< byte > src, Pointer< byte > dest, int size) |
static QByteArray | Qgetenv (string varName) |
static bool | Qputenv (string varName, QByteArray value) |
static int | Qrand () |
static void | Qsrand (uint seed) |
static int | Qstrcmp (QByteArray str1, QByteArray str2) |
static int | Qstrcmp (QByteArray str1, string str2) |
static int | Qstrcmp (string str1, QByteArray str2) |
static int | Qstrcmp (string str1, string str2) |
static Pointer< sbyte > | Qstrcpy (Pointer< sbyte > dst, string src) |
static Pointer< sbyte > | Qstrdup (string arg1) |
static int | Qstricmp (string arg1, string arg2) |
static uint | Qstrlen (string str) |
static int | Qstrncmp (string str1, string str2, uint len) |
static Pointer< sbyte > | Qstrncpy (Pointer< sbyte > dst, string src, uint len) |
static int | Qstrnicmp (string arg1, string arg2, uint len) |
static uint | Qstrnlen (string str, uint maxlen) |
static string | QtTrId (string id, int n=-1) |
Properties | |
override QRectF | Geometry [get, set] |
| |
new QWidget | Widget [get, set] |
| |
static new QMetaObject | StaticMetaObject [get] |
new IQGraphicsProxyWidgetSignals | Emit [get] |
Properties inherited from QtGui.QGraphicsWidget | |
Slot | GeometryChanged |
| |
Slot | LayoutChanged |
virtual QRectF | Geometry [get, set] |
new QStyle | Style [get, set] |
| |
new double | MaximumHeight [get, set] |
new QSizeF | MaximumSize [get, set] |
new double | MaximumWidth [get, set] |
new double | MinimumHeight [get, set] |
new QSizeF | MinimumSize [get, set] |
new double | MinimumWidth [get, set] |
new IQGraphicsLayoutItem | ParentLayoutItem [get, set] |
new double | PreferredHeight [get, set] |
new QSizeF | PreferredSize [get, set] |
new double | PreferredWidth [get, set] |
new QSizePolicy | SizePolicy [get, set] |
new QPalette | Palette [get, set] |
| |
new QFont | Font [get, set] |
| |
new Qt.LayoutDirection | LayoutDirection [get, set] |
| |
new QSizeF | Size [get, set] |
| |
new Qt.FocusPolicy | FocusPolicy [get, set] |
| |
new Qt.WindowType | WindowFlags [get, set] |
| |
new string | WindowTitle [get, set] |
| |
new bool | AutoFillBackground [get, set] |
| |
new QGraphicsLayout | Layout [get, set] |
static new QMetaObject | StaticMetaObject [get] |
new IQGraphicsWidgetSignals | Emit [get] |
Properties inherited from QtGui.QGraphicsObject | |
Slot | ParentChanged |
| |
Slot | OpacityChanged |
| |
Slot | VisibleChanged |
| |
Slot | EnabledChanged |
| |
Slot | XChanged |
Slot | YChanged |
Slot | ZChanged |
Slot | RotationChanged |
| |
Slot | ScaleChanged |
| |
Slot | ChildrenChanged |
Slot | WidthChanged |
Slot | HeightChanged |
new bool | AcceptDrops [get, set] |
new bool | AcceptHoverEvents [get, set] |
new bool | AcceptTouchEvents [get, set] |
new Qt.MouseButton | AcceptedMouseButtons [get, set] |
new bool | AcceptsHoverEvents [get, set] |
new double | BoundingRegionGranularity [get, set] |
new QGraphicsItem.CacheMode | cacheMode [get, set] |
new QCursor | Cursor [get, set] |
new bool | FiltersChildEvents [get, set] |
new QGraphicsItem.GraphicsItemFlag | Flags [get, set] |
new IQGraphicsItem | FocusProxy [get, set] |
new QGraphicsEffect | GraphicsEffect [get, set] |
new QGraphicsItemGroup | Group [get, set] |
new bool | HandlesChildEvents [get, set] |
new Qt.InputMethodHint | InputMethodHints [get, set] |
new double | Opacity [get, set] |
new QGraphicsItem.PanelModality | panelModality [get, set] |
new IQGraphicsItem | ParentItem [get, set] |
new QPointF | Pos [get, set] |
new double | Rotation [get, set] |
new string | ToolTip [get, set] |
new QPointF | TransformOriginPoint [get, set] |
new System.Collections.Generic.List < QGraphicsTransform > | Transformations [get, set] |
new double | X [get, set] |
new double | Y [get, set] |
new double | zValue [get, set] |
new QMatrix | Matrix [get] |
new QTransform | Transform [get] |
new QGraphicsObject | Parent [get, set] |
new double | Z [get, set] |
new QGraphicsEffect | Effect [get, set] |
new double | Width [get, set] |
new double | Height [get, set] |
static new QMetaObject | StaticMetaObject [get] |
new IQGraphicsObjectSignals | Emit [get] |
Properties inherited from QtCore.QObject | |
virtual EventHandler < QEventArgs< QChildEvent > > | ChildEvent |
| |
virtual EventHandler < QEventArgs< QEvent > > | CustomEvent |
| |
virtual EventHandler < QEventArgs< QEvent > > | Event |
| |
virtual EventHandler < QEventArgs< QTimerEvent > > | TimerEvent |
| |
Slot< QObject > | DestroyedQObject |
Slot | Destroyed |
| |
new QObject | Parent [get, set] |
| |
virtual System.IntPtr | SmokeObject [get, set] |
new string | ObjectName [get, set] |
| |
static new QMetaObject | StaticMetaObject [get] |
| |
static new QMetaObject | StaticQtMetaObject [get] |
new IQObjectSignals | Emit [get] |
Properties inherited from QtGui.IQGraphicsItem | |
System.Boolean | AcceptDrops [get, set] |
System.Boolean | AcceptHoverEvents [get, set] |
System.Boolean | AcceptTouchEvents [get, set] |
Qt.MouseButton | AcceptedMouseButtons [get, set] |
System.Boolean | AcceptsHoverEvents [get, set] |
System.Double | BoundingRegionGranularity [get, set] |
QGraphicsItem.CacheMode | cacheMode [get, set] |
QCursor | Cursor [get, set] |
System.Boolean | FiltersChildEvents [get, set] |
QGraphicsItem.GraphicsItemFlag | Flags [get, set] |
IQGraphicsItem | FocusProxy [get, set] |
QGraphicsEffect | GraphicsEffect [get, set] |
QGraphicsItemGroup | Group [get, set] |
System.Boolean | HandlesChildEvents [get, set] |
Qt.InputMethodHint | InputMethodHints [get, set] |
System.Double | Opacity [get, set] |
QGraphicsItem.PanelModality | panelModality [get, set] |
IQGraphicsItem | ParentItem [get, set] |
QPointF | Pos [get, set] |
System.Double | Rotation [get, set] |
System.String | ToolTip [get, set] |
QPointF | TransformOriginPoint [get, set] |
System.Collections.Generic.List < QGraphicsTransform > | Transformations [get, set] |
System.Double | X [get, set] |
System.Double | Y [get, set] |
System.Double | zValue [get, set] |
QMatrix | Matrix [get] |
QTransform | Transform [get] |
Properties inherited from QtGui.IQGraphicsLayoutItem | |
QRectF | Geometry [get, set] |
System.Double | MaximumHeight [get, set] |
QSizeF | MaximumSize [get, set] |
System.Double | MaximumWidth [get, set] |
System.Double | MinimumHeight [get, set] |
QSizeF | MinimumSize [get, set] |
System.Double | MinimumWidth [get, set] |
IQGraphicsLayoutItem | ParentLayoutItem [get, set] |
System.Double | PreferredHeight [get, set] |
QSizeF | PreferredSize [get, set] |
System.Double | PreferredWidth [get, set] |
QSizePolicy | SizePolicy [get, set] |
The QGraphicsProxyWidget class provides a proxy layer for embedding a QWidget in a QGraphicsScene.
QGraphicsProxyWidget embeds QWidget-based widgets, for example, a QPushButton, QFontComboBox, or even QFileDialog, into QGraphicsScene. It forwards events between the two objects and translates between QWidget's integer-based geometry and QGraphicsWidget's qreal-based geometry. QGraphicsProxyWidget supports all core features of QWidget, including tab focus, keyboard input, Drag & Drop, and popups. You can also embed complex widgets, e.g., widgets with subwidgets.
Example:
int main(int argc, char **argv)
{
QApplication app(argc, argv);
QTabWidget *tabWidget = new QTabWidget;
QGraphicsScene scene;
QGraphicsProxyWidget *proxy = scene.addWidget(tabWidget);
QGraphicsView view(&scene);
view.show();
return app.exec();
}
QGraphicsProxyWidget takes care of automatically embedding popup children of embedded widgets through creating a child proxy for each popup. This means that when an embedded QComboBox shows its popup list, a new QGraphicsProxyWidget is created automatically, embedding the popup, and positioning it correctly. This only works if the popup is child of the embedded widget (for example QToolButton::setMenu() requires the QMenu instance to be child of the QToolButton).
Embedding a Widget with QGraphicsProxyWidget
There are two ways to embed a widget using QGraphicsProxyWidget. The most common way is to pass a widget pointer to QGraphicsScene::addWidget() together with any relevant Qt::WindowFlags. This function returns a pointer to a QGraphicsProxyWidget. You can then choose to reparent or position either the proxy, or the embedded widget itself.
For example, in the code snippet below, we embed a group box into the proxy:
QGroupBox *groupBox = new QGroupBox("Contact Details");
QLabel *numberLabel = new QLabel("Telephone number");
QLineEdit *numberEdit = new QLineEdit;
QFormLayout *layout = new QFormLayout;
layout->addRow(numberLabel, numberEdit);
groupBox->setLayout(layout);
QGraphicsScene scene;
QGraphicsProxyWidget *proxy = scene.addWidget(groupBox);
QGraphicsView view(&scene);
view.show();
The image below is the output obtained with its contents margin and contents rect labeled.
Alternatively, you can start by creating a new QGraphicsProxyWidget item, and then call setWidget() to embed a QWidget later. The widget() function returns a pointer to the embedded widget. QGraphicsProxyWidget shares ownership with QWidget, so if either of the two widgets are destroyed, the other widget will be automatically destroyed as well.
Synchronizing Widget States
QGraphicsProxyWidget keeps its state in sync with the embedded widget. For example, if the proxy is hidden or disabled, the embedded widget will be hidden or disabled as well, and vice versa. When the widget is embedded by calling addWidget(), QGraphicsProxyWidget copies the state from the widget into the proxy, and after that, the two will stay synchronized where possible. By default, when you embed a widget into a proxy, both the widget and the proxy will be visible because a QGraphicsWidget is visible when created (you do not have to call show()). If you explicitly hide the embedded widget, the proxy will also become invisible.
Example:
QGraphicsScene scene;
QLineEdit *edit = new QLineEdit;
QGraphicsProxyWidget *proxy = scene.addWidget(edit);
edit->isVisible(); // returns true
proxy->isVisible(); // also returns true
edit->hide();
edit->isVisible(); // returns false
proxy->isVisible(); // also returns false
QGraphicsProxyWidget maintains symmetry for the following states:
QWidget stateQGraphicsProxyWidget stateNotes
QWidget::enabled QGraphicsProxyWidget::enabled
QWidget::visible QGraphicsProxyWidget::visible The explicit state is also symmetric.
QWidget::geometry QGraphicsProxyWidget::geometry Geometry is only guaranteed to be symmetric while the embedded widget is visible.
QWidget::layoutDirection QGraphicsProxyWidget::layoutDirection
QWidget::style QGraphicsProxyWidget::style
QWidget::palette QGraphicsProxyWidget::palette
QWidget::font QGraphicsProxyWidget::font
QWidget::cursor QGraphicsProxyWidget::cursor The embedded widget overrides the proxy widget cursor. The proxy cursor changes depending on which embedded subwidget is currently under the mouse.
QWidget::sizeHint() QGraphicsProxyWidget::sizeHint() All size hint functionality from the embedded widget is forwarded by the proxy.
QWidget::getContentsMargins() QGraphicsProxyWidget::getContentsMargins() Updated once by setWidget().
QWidget::windowTitle QGraphicsProxyWidget::windowTitle Updated once by setWidget().
Note: QGraphicsScene keeps the embedded widget in a special state that prevents it from disturbing other widgets (both embedded and not embedded) while the widget is embedded. In this state, the widget may differ slightly in behavior from when it is not embedded.
Warning: This class is provided for convenience when bridging QWidgets and QGraphicsItems, it should not be used for high-performance scenarios.
See also QGraphicsScene::addWidget() and QGraphicsWidget.
|
protected |
QtGui.QGraphicsProxyWidget.QGraphicsProxyWidget | ( | IQGraphicsItem | parent = null , |
Qt.WindowType | wFlags = 0 |
||
) |
Constructs a new QGraphicsProxy widget. parent and wFlags are passed to QGraphicsItem's constructor.
|
virtual |
Reimplemented from QtGui.QGraphicsObject.
new QGraphicsProxyWidget QtGui.QGraphicsProxyWidget.CreateProxyForChildWidget | ( | QWidget | child | ) |
Creates a proxy widget for the given child of the widget contained in this proxy.
This function makes it possible to acquire proxies for non top-level widgets. For instance, you can embed a dialog, and then transform only one of its widgets.
If the widget is already embedded, return the existing proxy widget.
This function was introduced in Qt 4.5.
See also newProxyWidget() and QGraphicsScene::addWidget().
new void QtGui.QGraphicsProxyWidget.Dispose | ( | ) |
Reimplemented from QObject::eventFilter().
|
protectedvirtual |
Reimplemented from QGraphicsWidget::focusNextPrevChild().
Reimplemented from QtGui.QGraphicsWidget.
|
protectedvirtual |
Reimplemented from QGraphicsItem::itemChange().
Reimplemented from QtGui.QGraphicsObject.
|
protected |
Creates a proxy widget for the given child of the widget contained in this proxy.
You should not call this function directly; use QGraphicsProxyWidget::createProxyForChildWidget() instead.
This function is a fake virtual slot that you can reimplement in your subclass in order to control how new proxy widgets are created. The default implementation returns a proxy created with the QGraphicsProxyWidget() constructor with this proxy widget as the parent.
This function was introduced in Qt 4.5.
See also createProxyForChildWidget().
|
protectedvirtual |
Reimplemented from QGraphicsItem::contextMenuEvent().
Reimplemented from QtGui.QGraphicsObject.
|
protectedvirtual |
Reimplemented from QGraphicsItem::dragEnterEvent().
Reimplemented from QtGui.QGraphicsObject.
|
protectedvirtual |
Reimplemented from QGraphicsItem::dragLeaveEvent().
Reimplemented from QtGui.QGraphicsObject.
|
protectedvirtual |
Reimplemented from QGraphicsItem::dragMoveEvent().
Reimplemented from QtGui.QGraphicsObject.
|
protectedvirtual |
Reimplemented from QGraphicsItem::dropEvent().
Reimplemented from QtGui.QGraphicsObject.
override bool QtGui.QGraphicsProxyWidget.OnEvent | ( | QEvent @ | event | ) |
Reimplemented from QObject::event().
|
protectedvirtual |
Reimplemented from QGraphicsItem::focusInEvent().
Reimplemented from QtGui.QGraphicsObject.
|
protectedvirtual |
Reimplemented from QGraphicsItem::focusOutEvent().
Reimplemented from QtGui.QGraphicsObject.
|
protectedvirtual |
Reimplemented from QGraphicsWidget::grabMouseEvent().
Reimplemented from QtGui.QGraphicsWidget.
|
protectedvirtual |
Reimplemented from QGraphicsWidget::hideEvent().
Reimplemented from QtGui.QGraphicsWidget.
|
protectedvirtual |
Reimplemented from QGraphicsItem::hoverEnterEvent().
Reimplemented from QtGui.QGraphicsObject.
|
protectedvirtual |
Reimplemented from QGraphicsItem::hoverLeaveEvent().
Reimplemented from QtGui.QGraphicsObject.
|
protectedvirtual |
Reimplemented from QGraphicsItem::hoverMoveEvent().
Reimplemented from QtGui.QGraphicsObject.
|
protectedvirtual |
Reimplemented from QGraphicsItem::keyPressEvent().
Reimplemented from QtGui.QGraphicsObject.
|
protectedvirtual |
Reimplemented from QGraphicsItem::keyReleaseEvent().
Reimplemented from QtGui.QGraphicsObject.
|
protectedvirtual |
Reimplemented from QGraphicsItem::mouseDoubleClickEvent().
Reimplemented from QtGui.QGraphicsObject.
|
protectedvirtual |
Reimplemented from QGraphicsItem::mouseMoveEvent().
Reimplemented from QtGui.QGraphicsObject.
|
protectedvirtual |
Reimplemented from QGraphicsItem::mousePressEvent().
Reimplemented from QtGui.QGraphicsObject.
|
protectedvirtual |
Reimplemented from QGraphicsItem::mouseReleaseEvent().
Reimplemented from QtGui.QGraphicsObject.
|
protectedvirtual |
Reimplemented from QGraphicsWidget::resizeEvent().
Reimplemented from QtGui.QGraphicsWidget.
|
protectedvirtual |
Reimplemented from QGraphicsWidget::showEvent().
Reimplemented from QtGui.QGraphicsWidget.
|
protectedvirtual |
Reimplemented from QGraphicsWidget::ungrabMouseEvent().
Reimplemented from QtGui.QGraphicsWidget.
|
protectedvirtual |
Reimplemented from QGraphicsItem::wheelEvent().
Reimplemented from QtGui.QGraphicsObject.
|
virtual |
Reimplemented from QGraphicsItem::paint().
Implements QtGui.QGraphicsObject.
|
protected |
Reimplemented from QGraphicsLayoutItem::sizeHint().
|
protectedvirtual |
Reimplemented from QGraphicsLayoutItem::sizeHint().
Reimplemented from QtGui.QGraphicsWidget.
|
static |
|
static |
|
static |
|
static |
|
virtual |
Reimplemented from QGraphicsItem::type().
Reimplemented from QtGui.QGraphicsObject.
|
getprotected |
|
getset |
Reimplemented from QGraphicsLayoutItem::setGeometry().
|
staticget |
|
getset |
Returns a pointer to the embedded widget.
Embeds widget into this proxy widget. The embedded widget must reside exclusively either inside or outside of Graphics View. You cannot embed a widget as long as it is is visible elsewhere in the UI, at the same time.
widget must be a top-level widget whose parent is 0.
When the widget is embedded, its state (e.g., visible, enabled, geometry, size hints) is copied into the proxy widget. If the embedded widget is explicitly hidden or disabled, the proxy widget will become explicitly hidden or disabled after embedding is complete. The class documentation has a full overview over the shared state.
QGraphicsProxyWidget's window flags determine whether the widget, after embedding, will be given window decorations or not.
After this function returns, QGraphicsProxyWidget will keep its state synchronized with that of widget whenever possible.
If a widget is already embedded by this proxy when this function is called, that widget will first be automatically unembedded. Passing 0 for the widget argument will only unembed the widget, and the ownership of the currently embedded widget will be passed on to the caller. Every child widget that are embedded will also be embedded and their proxy widget destroyed.
Note that widgets with the Qt::WA_PaintOnScreen widget attribute set and widgets that wrap an external application or controller cannot be embedded. Examples are QGLWidget and QAxWidget.