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

QML Locale cannot be compiled in Direct Mode

    XMLWordPrintable

Details

    Description

      Probably because QQmlLocaleValueType is not exported: https://github.com/qt/qtdeclarative/blob/v6.9.0/src/qml/qml/qqmllocale_p.h#L93

       

      Code

      import QtQuick
      
      Window {
          width: 640
          height: 480
          visible: true
          title: Qt.locale("en_AU").nativeLanguageName
      }
      

       

      Outcomes
      With set_target_properties(appLocaleDirectIssue PROPERTIES QT_QMLCACHEGEN_DIRECT_CALLS ON), we get

      appLocaleDirectIssue_Main_qml.cpp.obj:-1: error: LNK2001: unresolved external symbol "public: static struct QMetaObject const QQmlLocaleValueType::staticMetaObject" (?staticMetaObject@QQmlLocaleValueType@@2UQMetaObject@@B)
      

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes