diff --git a/CMakeLists.txt b/CMakeLists.txt index 267e1d76..0c354837 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -303,6 +303,7 @@ if(STATIC) list(APPEND QT5_EXTRA_PATHS ${QT5_PKG_CONFIG_Qt5Qml_PREFIX}/qml/QtGraphicalEffects/private) list(APPEND QT5_EXTRA_PATHS ${QT5_PKG_CONFIG_Qt5Qml_PREFIX}/qml/QtMultimedia) list(APPEND QT5_EXTRA_PATHS ${QT5_PKG_CONFIG_Qt5Qml_PREFIX}/qml/QtQml) + list(APPEND QT5_EXTRA_PATHS ${QT5_PKG_CONFIG_Qt5Qml_PREFIX}/qml/QtQml/Models.2) list(APPEND QT5_EXTRA_PATHS ${QT5_PKG_CONFIG_Qt5Qml_PREFIX}/qml/QtQuick.2) list(APPEND QT5_EXTRA_PATHS ${QT5_PKG_CONFIG_Qt5Qml_PREFIX}/qml/QtQuick/Controls) list(APPEND QT5_EXTRA_PATHS ${QT5_PKG_CONFIG_Qt5Qml_PREFIX}/qml/QtQuick/Controls.2) @@ -325,6 +326,7 @@ if(STATIC) qmlsettingsplugin qmlxmllistmodelplugin qquicklayoutsplugin + modelsplugin ) if(WITH_SCANNER) diff --git a/src/main/main.cpp b/src/main/main.cpp index b4e1fe42..10cf5a73 100644 --- a/src/main/main.cpp +++ b/src/main/main.cpp @@ -123,6 +123,7 @@ Q_IMPORT_PLUGIN(QGenericEnginePlugin) #if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0) Q_IMPORT_PLUGIN(QtQmlPlugin) #endif +Q_IMPORT_PLUGIN(QtQmlModelsPlugin) Q_IMPORT_PLUGIN(QtQuick2Plugin) Q_IMPORT_PLUGIN(QtQuickLayoutsPlugin) Q_IMPORT_PLUGIN(QtGraphicalEffectsPlugin)