[Interest] Turning on MSAA on a Qml-created Window
Josh Faust
jfaust at suitabletech.com
Mon Nov 4 20:13:33 CET 2013
Hi Sletta,
That makes sense, I'll give it a shot. Thanks.
Josh
On Mon, Nov 4, 2013 at 12:34 AM, Sletta Gunnar <Gunnar.Sletta at digia.com>wrote:
> 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.com at qt-project.org[interest-bounces+gunnar.sletta=
> digia.com at qt-project.org] på vegne av Josh Faust [
> jfaust at suitabletech.com]
> Sendt: 1. november 2013 23:33
> To: interest at 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20131104/73de9c9c/attachment.html>
More information about the Interest
mailing list