summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets/qmaccocoaviewcontainer_mac.mm
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/qmaccocoaviewcontainer_mac.mm')
-rw-r--r--src/gui/widgets/qmaccocoaviewcontainer_mac.mm3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/widgets/qmaccocoaviewcontainer_mac.mm b/src/gui/widgets/qmaccocoaviewcontainer_mac.mm
index ab551be..35404a3 100644
--- a/src/gui/widgets/qmaccocoaviewcontainer_mac.mm
+++ b/src/gui/widgets/qmaccocoaviewcontainer_mac.mm
@@ -134,6 +134,9 @@ QMacCocoaViewContainer::QMacCocoaViewContainer(void *cocoaViewToWrap, QWidget *p
{
if (cocoaViewToWrap)
setCocoaView(cocoaViewToWrap);
+
+ // QMacCocoaViewContainer requires a native window handle.
+ setAttribute(Qt::WA_NativeWindow);
}
/*!