[Interest] Qt::AA_DontCreateNativeWidgetAncestors and Siblings?

Agocs Laszlo laszlo.agocs at theqtcompany.com
Fri Jun 19 10:49:44 CEST 2015


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?


-----Original Message-----
From: interest-bounces+laszlo.agocs=theqtcompany.com at qt-project.org [mailto:interest-bounces+laszlo.agocs=theqtcompany.com at qt-project.org] On Behalf Of Boudewijn Rempt
Sent: 19. juni 2015 10:41
To: interest at qt-project.org
Subject: [Interest] Qt::AA_DontCreateNativeWidgetAncestors and Siblings?


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).

Interest mailing list
Interest at qt-project.org

More information about the Interest mailing list