mmertama / FigmaQML

Converts Figma designs to QML/QtQuick
MIT License
200 stars 38 forks source link

module "QtGraphicalEffects" is not installed #7

Closed Senkai350 closed 1 year ago

Senkai350 commented 2 years ago

i try to run qml generated by FigmaQML using qt 6.2 in qt creator and get error QQmlApplicationEngine failed to load component qrc:/Test/main.qml:3:1: module "QtGraphicalEffects" is not installed what i make to do? main.cpp code `#include

include

int main(int argc, char *argv[]) { QGuiApplication app(argc, argv);

QQmlApplicationEngine engine;
const QUrl url(u"qrc:/Test/main.qml"_qs);
QObject::connect(&engine, &QQmlApplicationEngine::objectCreated,
                 &app, [url](QObject *obj, const QUrl &objUrl) {
    if (!obj && url == objUrl)
        QCoreApplication::exit(-1);
}, Qt::QueuedConnection);
engine.load(url);

return app.exec();

} ` I also attached qml file in qml.zip qml.zip

mmertama commented 2 years ago

Hi, you have to install that using the Qt Maintenance Tool. Are you using Qt5 or Qt6? For Qt6 that is part of the Qt5 Compatability module.

mmertama commented 1 year ago

Install Qt5 Compatability module.