[Qt-qml] Layout question

Bo Thorsen bo at fioniasoftware.dk
Tue Sep 20 08:38:26 CEST 2011


Den 20-09-2011 08:04, John Temples skrev:
> Say I have a Column that contains three buttons.  Is there a way to
> have the three buttons be equally spaced within the Column, and remain
> equally spaced as the Column's height changes?  The buttons shouldn't
> resize as the Column changes size.

The easiest way to do this is with an item between the buttons and the 
column:

Item {
   anchors.centerIn: parent

   // buttons here...
}

Bo Thorsen,
Fionia Software.

-- 

Expert Qt and C++ developer for hire
Contact me if you need expert Qt help
http://www.fioniasoftware.dk


More information about the Qt-qml mailing list