[Development] QWindow::surfaceType and when it should be set
Holger Hans Peter Freyther
holger at freyther.de
Tue May 29 12:52:33 CEST 2012
I have hardware that requires me to allocate a different kind of surface
depending or whether or not OpenGL (RGB vs. BGR) is used. The usage of the
setSurfaceType() appears to be inconsistent though. E.g. EGLFS is the platform
plugin that calls this method on activation of the OpenGLContext, the usage
inside QtDeclarative appears to be inconsistent too.
One way to go forward would be to support ABGR8888 inside Qt. The other way to
go forward would be to consolidate the QWindow/QPlatformWindow handling. Is it
feasible to require calling setSurfaceType _before_ the QPlatformWindow will
be created and forbid any changes to the surfaceType when the QPlatformWindow
is present? Right now a QPlatformWindow is not informed about changes of the
any idea what ::surfaceType() was meant to be used for?
More information about the Development