Hi Josh,

This should be possible, but there are a few things to keep in mind. In Qt 5.1 
the QQuickWindows all share the same OpenGL context, so you need to request 
multisampling on the first window you show, before you show it. As a result, 
all QQuickWindows will get multisampling. 

If you open the first ApplicationWindow from QML, use a C++ function to assign 
it the surface format of your choice before showing the window. The scene graph 
will pick up the format you specified using QQuickWindow::setFormat() and use 
that.

cheers,
Gunnar
________________________________________
Fra: interest-bounces+gunnar.sletta=digia....@qt-project.org 
[interest-bounces+gunnar.sletta=digia....@qt-project.org] på vegne av Josh 
Faust [jfa...@suitabletech.com]
Sendt: 1. november 2013 23:33
To: interest@qt-project.org
Emne: [Interest] Turning on MSAA on a Qml-created Window

Is this possible? I can't use a custom QQuickWindow subclass, as I'm using 
ApplicationWindow. Is there any way to set the default QSurfaceFormat that will 
be used by QWindow?

Josh
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to