Solved problem with ColorDialog : plugin cannot be loaded for module "Qt.labs.platform" using qml
-
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
-
@qAminzzz
hi all again, i copied Qt5Widgets.dll in build directory and it worked -
@qAminzzz
hi all again, i copied Qt5Widgets.dll in build directory and it worked -
@qAminzzz
Does not sound like a good solution: you should never need to copy Qt-supplied libraries to your application's build directory, they are supposed to be found in the system areas. -
This post is deleted! -
@JonB so what i should to do? ):