aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/qquickwindow.h
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@theqtcompany.com>2016-05-23 20:48:08 +0200
committerLaszlo Agocs <laszlo.agocs@theqtcompany.com>2016-05-30 09:35:43 +0000
commit5956771cb9fc6468eaf002ebe8a7a3396807c2c1 (patch)
tree293250efb3f39351046248167acd616a020c0c34 /src/quick/items/qquickwindow.h
parent0837453ef90f5d5f569702aa1c7620648dae2c00 (diff)
Add an API to set the scenegraph backend
As an alternative to QT_QUICK_BACKEND and QMLSCENE_DEVICE. The need for this is twofold: it is requested by Creator since environment variables have potential issues with child processes inheriting them. Also, platforms like WinRT may have issues with environment variables - as such a concept may not necessarily exist. Change-Id: Ia66b78dc83fce5af0f36d4b34dc094582eb6e61d Reviewed-by: Robin Burchell <robin.burchell@viroteck.net>
Diffstat (limited to 'src/quick/items/qquickwindow.h')
-rw-r--r--src/quick/items/qquickwindow.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/quick/items/qquickwindow.h b/src/quick/items/qquickwindow.h
index 977b4956b2..37be6d591c 100644
--- a/src/quick/items/qquickwindow.h
+++ b/src/quick/items/qquickwindow.h
@@ -41,6 +41,7 @@
#define QQUICKWINDOW_H
#include <QtQuick/qtquickglobal.h>
+#include <QtQuick/qsgrendererinterface.h>
#include <QtCore/qmetatype.h>
#include <QtGui/qopengl.h>
#include <QtGui/qwindow.h>
@@ -60,7 +61,6 @@ class QQmlIncubationController;
class QInputMethodEvent;
class QQuickCloseEvent;
class QQuickRenderControl;
-class QSGRendererInterface;
class Q_QUICK_EXPORT QQuickWindow : public QWindow
{
@@ -156,6 +156,9 @@ public:
QSGRendererInterface *rendererInterface() const;
+ static void setSceneGraphBackend(QSGRendererInterface::GraphicsAPI api);
+ static void setSceneGraphBackend(const QString &backend);
+
Q_SIGNALS:
void frameSwapped();
Q_REVISION(2) void openglContextCreated(QOpenGLContext *context);