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

QML tools cannot see properties of Window.screen

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 6.8.4, 6.10.0 Beta4
    • None

      Looks like it is exposed as a basic QObject and documented as a "variant": https://doc.qt.io/Qt-6/qml-qtquick-window.html#screen-prop

       

      Code

      import QtQuick
      
      Window {
          id: root
          width: 0.5*root.screen.width // Warning: Member "width" not found on type "QObject" [missing-property]
          height: 0.5*root.screen.height // Warning: Member "hright" not found on type "QObject" [missing-property]
          visible: true
      }
      

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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            skoh-qt Sze Howe Koh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes