Talk:KDE System Administration/PlasmaDesktopScripting

Jump to: navigation, search

Contents

Thread titleRepliesLast modified
Writing an example for setting widget's geometry102:36, 10 January 2013

Writing an example for setting widget's geometry

1. In the widget attribute "geometry", we should add an example about how to set up the geometry of a widget. It spent me quite some time trying

  widget.writeConfig("geometry", "x,y,w,h")

and

  widget.geometry = new QRectF(x,y,w,h)

which both were found by google, but both failed. Finally Aaron told me to use this way:

 widget.geometry = QRectF(x, y, w, h)

and it worked. So I suggest to put this in the page.

Franklin (talk)06:33, 21 August 2012

Sorry, I just saw this message :D Go ahead :-)

Broulik (talk)02:36, 10 January 2013
 

This page was last modified on 21 August 2012, at 06:33. This page has been accessed 1,715 times. Content is available under Creative Commons License SA 3.0 as well as the GNU Free Documentation License 1.2.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V.Legal