Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.8.3, 6.9.0
-
Windows 10 22H2, MSVC 2022 x64
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)