Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Qt6.2.3 - QQuickWidget - QtQuick.Studio.Components ..
Forum Updated to NodeBB v4.3 + New Features

Qt6.2.3 - QQuickWidget - QtQuick.Studio.Components ..

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 387 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mickael
    wrote on last edited by mickael
    #1

    Hi,
    I created a simple file.ui.qml with the QtDesignStudio :

    import QtQuick 2.15
    import QtQuick.Studio.Components 1.0
    
    Item {
        id: item1
        width: 800
        height: 800
    
        Rectangle {
            id: rectangle
            x: 408
            y: 234
            width: 335
            height: 295
            color: "#b32424"
        }
    
        ArcItem {
            id: arc
            anchors.verticalCenter: parent.verticalCenter
            begin: -90
            end: 90
            strokeWidth: 10
            anchors.verticalCenterOffset: -70
            anchors.horizontalCenterOffset: -126
            anchors.horizontalCenter: parent.horizontalCenter
            fillColor: "#00000000"
        }
    }
    

    I use the module QtQuick.Studio.Components for the ArcItem.
    My goal is to display that in a QQuickWidget :

        ui->quickWidget->rootContext()->setContextProperty("TestQML", this);
        ui->quickWidget->setSource(QUrl("qrc:/qml/file.ui.qml"));
        ui->quickWidget->setAttribute(Qt::WA_AlwaysStackOnTop, true);
        ui->quickWidget->setClearColor(Qt::transparent);
    

    But I have this error :
    Cannot load library C:\Dev\Qt\6.2.3\mingw_64\qml\QtQuick\Studio\Components\quickstudiocomponentsplugin.dll: Le module sp?cifi? est introuvable.

    My .pro :

    QT       += core gui qml quick quickwidgets
    

    Previously, I was able to do this with Qt5.15

    Please, can someone explain to me how to use Qt.Quick.Componenent, Qt.Quick.Studio.Effect with QtCreator and a QQuickWidget ?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved