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

QML tools cannot see Locale properties

    XMLWordPrintable

Details

    Description

      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
      

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes