On Jan 13, 2011, at 8:04 AM, ext Paul Wellner Bou wrote:

> Hello,
> 
> maybe I am blind or something. But I can not find a way to layout just 
> one widget (promoted widget) in a default mainwindow in QtCreator in a 
> way that it spans over 100% of the available space and resizes 
> automatically on resizing the window.

Depends a bit on the type of widget you promoted to.
In general:
* After adding your widget set a layout e.g. horizontally (click mainwindow, 
then Lay Out Horizontally in the tool bar)
* You might need to adjust the size policy of the widget, e.g. line edits are 
vertically fixed by default. In the property editor set sizePolicy to Expanding 
for horiz and vert.
* Layouts might have default margins, in the layout for the main window (all 
the way down in the property editor) set the margins to whatever you want (e.g. 
0)

Br, Eike

> 
> How can this be done? Is this possible with the QtDesigner, and without 
> adding own layout code to my mainwindow class?
> 
> Thanks and regards
> Paul.
> _______________________________________________
> Qt-creator mailing list
> [email protected]
> http://lists.qt.nokia.com/mailman/listinfo/qt-creator

-- 
Eike Ziller
Software Engineer
Nokia, Qt Development Frameworks

Nokia gate5 GmbH
Firmensitz: Invalidenstr. 117, 10115 Berlin, Germany
Registergericht: Amtsgericht Charlottenburg, Berlin: HRB 106443 B
Umsatzsteueridentifikationsnummer: DE 812 845 193
Geschäftsführer: Dr. Michael Halbherr, Karim Tähtivuori



_______________________________________________
Qt-creator mailing list
[email protected]
http://lists.qt.nokia.com/mailman/listinfo/qt-creator

Reply via email to