From 248a4660f21af851562e22b1ca77e25eaf0ecda9 Mon Sep 17 00:00:00 2001 From: Tomi Korpipaa <tomi.korpipaa@qt.io> Date: Fri, 27 Apr 2018 09:25:53 +0300 Subject: [PATCH] Remove mac hack from kria QML Streamer had a bug that has been fixed. No hacks for mac needed anymore. --- kria-cluster-3d-demo/qml/main.qml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/kria-cluster-3d-demo/qml/main.qml b/kria-cluster-3d-demo/qml/main.qml index 968f7aa..e8f0cc1 100644 --- a/kria-cluster-3d-demo/qml/main.qml +++ b/kria-cluster-3d-demo/qml/main.qml @@ -148,14 +148,12 @@ Item { qmlStreams: [ QmlStream { presentationId: "navigationStream" - // Load at start and set active & visible. Otherwise causes problems - // with macOS. Loader { id: contentStream - active: true - visible: true - source: "qrc:/Navigation.qml" - asynchronous: false + active: false + visible: active + source: "" + asynchronous: true } } ] @@ -169,8 +167,6 @@ Item { // Hack. We need to draw something in QML in each frame to minimize the jamming of // Studio3D content. - /* - // This seems to mess up QML streaming for macOS. Enable if target device jams a lot. property bool direction: false onFrameUpdate: { direction = !direction; @@ -179,7 +175,7 @@ Item { else studio3D.x -= 0.1; } - */ + } OverlayContainer { -- GitLab