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

QML Locale cannot be compiled in Direct Mode

    XMLWordPrintable

Details

    • 568cea906 (dev), fd0557ee8 (6.10), 7d60eaa30 (6.9), b155b34bc (tqtc/lts-6.8)

    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

        For Gerrit Dashboard: QTBUG-135795
        # Subject Branch Project Status CR V

        Activity

          People

            fabiankosmale Fabian Kosmale
            skoh-qt Sze Howe Koh
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There is 1 open Gerrit change