<div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>On Tuesday 20 Nov 2007, Henry Stanaland wrote:<br>> Hi plaz-masters:
<br>><br>> I am trying to re-write my crappy calculator in Javascript. However,<br>> I can't seem to find a way to add normal widgets to a plasmoid<br>> using Javascript. It seems using the .ui files causes the UI
<br>> definitions to open in a popup. I think what I need is to be able to<br>> define a .ui file for the plasmoid itself....or atleast to be able to<br>> instantiate random QT widgets via Javascript. Anybody have any
<br>> helpful info?<br><br>Until Qt 4.4, you can't just put QWidgets on a QGraphicsScene, ie: you<br>can't add "normal" widgets to a plasmoid.</blockquote><div><br>I see. That explains a couple of things.
<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>There are a number of Plasma widgets in libplasma that you _can_ add to<br>a plasmoid, among them Plasma::PushButton [0] and Plasma::Label [1],
<br>which I'd guess would be the main ones you'd need.<br><br></blockquote><div><br>Well, that still leaves me the question: how does one add Plasma::PushButton<br>and other Plasma widgets from Javascript. Currently, the only objects instantiated
<br>from Javascript examples have a wrapper class here:<br><br>trunk/playground/base/plasma/applets/script/qtgui/*<br><br>Does somebody need to write a wrapper class for the Plasma widgets or<br>is this already done somewhere?
<br><br>-Henry Stanaland<br><br><br><br><br><br></div></div>