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

writing programs with plasma components in qtcreator

Tags: None
(comma "," separated)
oheidbuechel
Registered Member
Posts
17
Karma
0
OS
Hello!

I have created a fresh Qt-Quick-Application with QtCreator with the following main.qml:

Code: Select all
import QtQuick 1.1
import org.kde.plasma.components 0.1 as PlasmaComponents

Rectangle {
    id: app

    PlasmaComponents.Label {
        anchors.fill: parent

        text: "Hallo Welt"
    }
}


When I execute my succesfully compiled program, I get the following error:

Code: Select all
QObject::connect: Cannot connect Plasma::EffectWatcher::destroyed() to (null)::_k_x11FilterDestroyed()


What am I doing wrong?

Best regards,
Oliver.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
That sounds like a warning message, and is not related in any form to your code. It is a bug in KDE itself, namely in the Plasma Components in use.

Does your code work if you use an application like plasmoidviewer or similar to test your QML instead?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
oheidbuechel
Registered Member
Posts
17
Karma
0
OS
"plasmoidviewer main.qml" does not work.

After moving main.qml to the subdirectory contents and creating a metadata.desktop file, "plasmoidviewer ." works.


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot], rockscient