[Interest] Qt::AA_DontCreateNativeWidgetAncestors and Siblings?

Boudewijn Rempt boud at valdyas.org
Fri Jun 19 10:41:11 CEST 2015


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



More information about the Interest mailing list