problem with ColorDialog : plugin cannot be loaded for module "Qt.labs.platform" using qml
Solved
QML and Qt Quick
-
hi, i used below code to use ColorDialog:
import QtQuick 2.2 import QtQuick.Controls 2.5 import Qt.labs.platform 1.1 ApplicationWindow { width: 640 height: 480 visible: true title: qsTr("Hello World") ColorDialog { id: colorDialog title: "Please choose a color" onAccepted: { console.log("You chose: " + colorDialog.color) Qt.quit() } onRejected: { console.log("Canceled") Qt.quit() } Component.onCompleted: visible = true } }
and i got these errors:
- QQmlApplicationEngine failed to load component*
- qrc:/main.qml:3:1: plugin cannot be loaded for module "Qt.labs.platform": Cannot load library C:\Qt\5.15.0\mingw81_64\qml\Qt\labs\platform\qtlabsplatformplugin.dll: The specified procedure could not be found.
im grateful for any help