Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-134040

Qt Quick for Android: QML Screen type does not receive updates when used inside QtQuickView

    XMLWordPrintable

Details

    • Android

    Description

      QML Screen type does not receive updates from inside QtQuickView.

      How to reproduce:

      1. Open QtQuickView QML content source file of any of our QtQuickView examples.
      2. Write:
        Screen.onPrimaryOrientationChanged: { console.log("Screen primary orientation changed") }

        inside the root object of the QML file. (Reproduces with any other onChanged slot correlating with Screen properties)

      3. Run QtQuickView example using the modified QML content source file.

      Expectation:

      • Logcat should print "Screen primary orientation changed" when changing target device orientation.
      • Screen.onPrimaryOrientationChanged should receive the event of the primaryOrientation property changing.

      What happens:

      • Logcat does not print "Screen primary orientation changed" when changing orientation.
      • Screen type does not receive any updates after application launch.

      Expected results can be viewed when using the exact same logging in plain QML/Qt Quick example/project application, without the QtQuickView.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            koalajar Konsta Alajärvi
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes