path: root/src/widgets/kernel/qwindowcontainer_p.h
diff options
authorGunnar Sletta <>2013-10-18 12:36:47 +0200
committerThe Qt Project <>2013-10-22 10:46:21 +0200
commit72a7882cec07a9ad187c9e1772fb08f59a4b9519 (patch)
tree40e57146d54e551837c0b1ff7ccac65a3a5a8d25 /src/widgets/kernel/qwindowcontainer_p.h
parentc9ad904af9b6009205f5d02779c407fcd65b8d12 (diff)
Better QWindowContainer by not relying on native widgets.
We change the behavior slightly from the initial implementation in 5.1. Forcing the use of native child widgets is causing massive performance issues so instead, we attach the embedded QWindow directly to the root window. The only exception is QScrollArea and QMdiArea which still enforces native windows for the entire parent chain to make clipping and stacking work. Task-number: QTBUG-34138 Change-Id: If713637bd4dce630552ace2f8ad6b2e86c063721 Reviewed-by: Lars Knoll <>
Diffstat (limited to 'src/widgets/kernel/qwindowcontainer_p.h')
1 files changed, 5 insertions, 0 deletions
diff --git a/src/widgets/kernel/qwindowcontainer_p.h b/src/widgets/kernel/qwindowcontainer_p.h
index 37c023fc1d..e2446bef42 100644
--- a/src/widgets/kernel/qwindowcontainer_p.h
+++ b/src/widgets/kernel/qwindowcontainer_p.h
@@ -57,6 +57,11 @@ public:
explicit QWindowContainer(QWindow *embeddedWindow, QWidget *parent = 0, Qt::WindowFlags f = 0);
+ static void parentWasChanged(QWidget *parent);
+ static void parentWasMoved(QWidget *parent);
+ static void parentWasRaised(QWidget *parent);
+ static void parentWasLowered(QWidget *parent);
bool event(QEvent *ev);