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

QML tools cannot see Locale properties

XMLWordPrintable

      See

       

      Code

      import QtQml
      import QtQuick.Controls.Basic
      
      ApplicationWindow {
          id: window
          width: 640
          height: 480
          visible: true
          title: window.locale.name // [missing-property]
      }
      

       

      qmlsc output

      Warning: Main.qml:9:23: Member "name" not found on type "QLocale" [missing-property]
          title: window.locale.name
                               ^^^^
      Warning: Main.qml:9:23: Could not compile binding for title: Cannot load property name from QLocale of QQuickApplicationWindow::locale with type QLocale. [compiler]
          title: window.locale.name
      

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

            qtqmlteam Qt Qml Team User
            skoh-qt Sze Howe Koh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes