Writing an example for setting widget's geometry

Jump to: navigation, search
Revision as of 10 January 2013 at 01:36.
The highlighted comment was created in this revision.

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")


  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)05:33, 21 August 2012

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

      Broulik (talk)01:36, 10 January 2013