dbus
-
Using Arch Linux with KDE 6.5.1 and QT 6.10.
I'm trying to write a QML script that will interact with KDE AcitivityManager using dbus.import QtQuick 6.10 import QtCore 6.10 import QtDBus 6.10 Item { id: root DBusInterface { id: activityManager service: "org.kde.ActivityManager" path: "/ActivityManager/Activities" interfaceName: "org.kde.ActivityManager.Activities" } .... }When I run the script below I get error:
qml6 main.qml
QQmlApplicationEngine failed to load component
file:///.../qml/main.qml:3:1: module "QtDBus" is not installed
qml: Did not load any objects, exiting.I have qt6-declarative installed.
I tried to check if QT recognize this module:
/usr/lib/qt6/bin/qmlplugindump QtDBus 6.10
qmlplugindump is deprecated.
Please declare your types using QML_ELEMENT and related macros.
Then utilize the build system to invoke qmltyperegistrar in order to
generate qmltypes files.
QQmlComponent: Component is not ready
file:///typelist.qml:2:1: module "QtDBus" is not installed- How do I properly load QtDBus ?
-
Using Arch Linux with KDE 6.5.1 and QT 6.10.
I'm trying to write a QML script that will interact with KDE AcitivityManager using dbus.import QtQuick 6.10 import QtCore 6.10 import QtDBus 6.10 Item { id: root DBusInterface { id: activityManager service: "org.kde.ActivityManager" path: "/ActivityManager/Activities" interfaceName: "org.kde.ActivityManager.Activities" } .... }When I run the script below I get error:
qml6 main.qml
QQmlApplicationEngine failed to load component
file:///.../qml/main.qml:3:1: module "QtDBus" is not installed
qml: Did not load any objects, exiting.I have qt6-declarative installed.
I tried to check if QT recognize this module:
/usr/lib/qt6/bin/qmlplugindump QtDBus 6.10
qmlplugindump is deprecated.
Please declare your types using QML_ELEMENT and related macros.
Then utilize the build system to invoke qmltyperegistrar in order to
generate qmltypes files.
QQmlComponent: Component is not ready
file:///typelist.qml:2:1: module "QtDBus" is not installed- How do I properly load QtDBus ?
-
@OzzT One moment QtDBus is a C++ module, not QML. https://doc.qt.io/qt-6/qtdbus-index.html