[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-panel-devel
Subject:    Re: LCDNumber in JavaScript plasmoid
From:       Marco Martin <notmart () gmail ! com>
Date:       2010-12-21 9:54:39
Message-ID: 201012211054.39772.notmart () gmail ! com
[Download RAW message or body]

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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic