&nbsp;<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>&gt; Hi plaz-masters:
<br>&gt;<br>&gt; I am trying to re-write my crappy calculator in Javascript. &nbsp;However,<br>&gt; I can&#39;t seem to find a way to add normal widgets to a plasmoid<br>&gt; using Javascript. &nbsp;It seems using the .ui files causes the UI
<br>&gt; definitions to open in a popup. &nbsp;I think what I need is to be able to<br>&gt; define a .ui file for the plasmoid itself....or atleast to be able to<br>&gt; instantiate random QT widgets via Javascript. &nbsp;Anybody have any
<br>&gt; helpful info?<br><br>Until Qt 4.4, you can&#39;t just put QWidgets on a QGraphicsScene, ie: you<br>can&#39;t add &quot;normal&quot; widgets to a plasmoid.</blockquote><div><br>I see.&nbsp; That explains a couple of things.
<br>&nbsp;</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&#39;d guess would be the main ones you&#39;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.&nbsp; 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>