This forum has been archived. All content is frozen. Please use KDE Discuss instead.

QtQuick plasmoid cannot find module

Tags: None
(comma "," separated)
ralphb
Registered Member
Posts
16
Karma
0
OS

QtQuick plasmoid cannot find module

Thu May 26, 2022 2:38 pm
I'm trying to port my old Qt4 plasmoid to Qt5 using QtQuick. When I want to test my first hello world plasmoid
Code: Select all
import QtQuick 2.0
import org.kde.plasma.plasmoid 2.0 as PlasmaComponents

PlasmaComponents.Label {
  text: "Hello World";
  color: "blue";
}
using
Code: Select all
qmlscene main.qml
I only get this error:
Code: Select all
file:///home/ralph/plasmoid/contents/ui/main.qml:2 module "org.kde.plasma.plasmoid" is not installed
I'm on Debian 11, and I checked every available package for this module, to no avail. Interestingly, the plasmoids supplied with KDE also contain this import statement, but work flawlessly.

Is someone here using Debian who might be able to help me?
ralphb
Registered Member
Posts
16
Karma
0
OS
I've just noticed that importing
Code: Select all
import org.kde.plasma.components 3.0 as PlasmaComponents
instead works fine. Maybe that one example I used was bad.


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]