From kde-panel-devel Tue Dec 21 09:54:39 2010 From: Marco Martin Date: Tue, 21 Dec 2010 09:54:39 +0000 To: kde-panel-devel Subject: Re: LCDNumber in JavaScript plasmoid Message-Id: <201012211054.39772.notmart () gmail ! com> X-MARC-Message: https://marc.info/?l=kde-panel-devel&m=129292539107664 On Tuesday 21 December 2010, Stefan Zimmer wrote: > Hi. > > I want to integrade a LCDNumber into my JavaScript plasmoid. But the > following code causes an error > > var lcdNumber = new LCDNumber(); > > Of course i also tested various variants including QLCDNumber, LcdNumber, > QLcdNumber, ... Crating an configuration dialog (config.ui) using the > qtcreator, I can insert an QLCDNumber, but not programatically. > > Any Ideas why? widgets on qgraphicsscene (so also on plasma) are not qwidget, so what is available in tdesigner has nothing to do with it. it is possible to use qwidgets from C++ with the qgraphicsproxywidget concept, however doesn't work that good. it's not possible to add new kind of proxywidgets from javascript, only use the default plasma widget set. however in 4.6 with the qml script engine will be pretty easy to write fancy widgets (like an lcd display) directly in qml included in the plasmoid sources Cheers, Marco Martin _______________________________________________ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel