PDA

View Full Version : QtQuick.Controls not installed error under kde 4



nwtqtcntr
23rd November 2015, 13:42
Hi,

I have been developing a plasmoid in qt creator. At the top I have the following lines

import QtQuick 2.0
import QtQuick.Controls 1.0

I am using a popup menu so I need the controls. When I run my code in qt creator it runs successfully. I need to change the qtquick to 1.0 to run under plasmoids. When I install using the
plasmapkg command it installs successfully. When attempt to install the plasmoid on my desktop I receive an error that controls are installed. Under the about in the qt creator the version info is

Qt Creator 3.3.0
Based on Qt 5.4.0 (GCC 4.9.2, 32 bit)

I have mageia 5.0 with kde4. Any ideas?

anda_skoa
23rd November 2015, 16:23
If you run this as a Plasma 1 applet, then you are using QtQuick 1. There is no QtQuick.Controls module for QtQuick 1.

But I am pretty sure the Plasma 1 module has popups.

Cheers,
_

nwtqtcntr
23rd November 2015, 17:36
Kde 4 plasmoids will only accept qtquick 1.0. Is there any way to create a popup menu using qtquick 1.0. Thanks.

anda_skoa
24th November 2015, 07:53
Kde 4 plasmoids will only accept qtquick 1.0.

That's what I said, no?



Is there any way to create a popup menu using qtquick 1.0. Thanks.
Plasma's components contains a ContextMenu type http://api.kde.org/4.x-api/plasma-qml-apidocs/ContextMenu.html

In any case it might be a good idea to subscribe to the Plasma Development list https://mail.kde.org/mailman/listinfo/plasma-devel

Cheers,
_