Commit d8fb0b48 authored by Laszlo Agocs's avatar Laszlo Agocs Committed by The Qt Project
Browse files

Add defaultSurfaceFormat to QQuickWindow


This static function can be used to set a surface format that is
then picked up by all QQuickWindows, including the ones instantiated
from QML.

This introduces the ability to request higher OpenGL versions, core
profile and other options also for windows that are created from QML
via the ApplicationWindow element in Quick Controls applications.

[ChangeLog] Added QQuickWindow::setDefaultSurfaceFormat() to
set a surface format that applies to all Quick windows,
including the ones created from QML. The OpenGL shading language
version is now exposed to QML too in order to allow components
to provide the correct shader source so shader effect items.

Task-number: QTBUG-36392
Change-Id: I75a4718243d835894461f7ee0b4a383988840f9b
Reviewed-by: default avatarGunnar Sletta <gunnar.sletta@jollamobile.com>
parent a122617a
No related merge requests found
Showing with 215 additions and 2 deletions
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment