Hi, The message is a bit broken, it tries to say Qt:: WA_DontCreateNativeAncestors and Qt:: AA_DontCreateNativeWidgetSiblings.
The more important question is why your widgets get turned into native windows? Cheers, Laszlo -----Original Message----- From: interest-bounces+laszlo.agocs=theqtcompany....@qt-project.org [mailto:interest-bounces+laszlo.agocs=theqtcompany....@qt-project.org] On Behalf Of Boudewijn Rempt Sent: 19. juni 2015 10:41 To: interest@qt-project.org Subject: [Interest] Qt::AA_DontCreateNativeWidgetAncestors and Siblings? Hi, I'm porting Krita to use QOpenGLWidget, and I'm running into this: GLuint QOpenGLWidgetPrivate::textureId() const { Q_Q(const QOpenGLWidget); if (!q->isWindow() && q->internalWinId()) { qWarning() << "QOpenGLWidget cannot be used as a native child widget." << "Consider setting Qt::AA_DontCreateNativeWidgetAncestors and Siblings."; return 0; } return resolvedFbo ? resolvedFbo->texture() : (fbo ? fbo->texture() : 0); } I guess I'd be perfectly fine with setting Qt::AA_DontCreateNativeWidgetAncestors (and Siblings) to true... But those application attributes don't seem to exist. So I'm wondering... What now? (I got this message after settting Qt::AA_ShareOpenGLContexts to true -- before, the app would just crash, though setting the attribute made the app crash when running in VirtualBox). Boud _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest