RowThe Row element positions its children in a row. More... Inherits Item Properties
Detailed DescriptionRow is an element that positions its child items along a single row. It can be used as a convenient way to horizontally position a series of items without using anchors. Below is a Row that contains three rectangles of various sizes: import QtQuick 2.0 Row { spacing: 2 Rectangle { color: "red"; width: 50; height: 50 } Rectangle { color: "green"; width: 20; height: 50 } Rectangle { color: "blue"; width: 50; height: 20 } } The Row automatically positions these items in a horizontal formation, like this: [Missing image horizontalpositioner_example.png] If an item within a Row is not visible, or if it has a width or height of 0, the item will not be laid out and it will not be visible within the row. Also, since a Row automatically positions its children horizontally, a child item within a Row should not set its x position or horizontally anchor itself using the left, right, anchors.horizontalCenter, fill or centerIn anchors. If you need to perform these actions, consider positioning the items without the use of a Row. Note that items in a Row can use the Positioner attached property to access more information about its position within the Row. For more information on using Row and other related positioner-type elements, see Item Layouts. See also Column, Grid, Flow, Positioner, and Positioners example. Property DocumentationThis property holds the transition to be run for items that are added to this positioner. For a positioner, this applies to:
The transition can use the ViewTransition property to access more details about the item that is being added. See the ViewTransition documentation for more details and examples on using these transitions. Note: This transition is not applied to the items that already part of the positioner at the time of its creation. In this case, the populate transition is applied instead. See also populate, ViewTransition, and Positioners example. This property holds the effective layout direction of the row. When using the attached property LayoutMirroring::enabled for locale layouts, the visual layout direction of the row positioner will be mirrored. However, the property layoutDirection will remain unchanged. See also Row::layoutDirection and LayoutMirroring. This property holds the layoutDirection of the row. Possible values:
See also Grid::layoutDirection, Flow::layoutDirection, and Layout directions example. This property holds the transition to run for items that have moved within the positioner. For a positioner, this applies to:
The transition can use the ViewTransition property to access more details about the item that is being moved. Note, however, that for this move transition, the ViewTransition.targetIndexes and ViewTransition.targetItems lists are only set when this transition is triggered by the addition of other items in the positioner; in other cases, these lists will be empty. See the ViewTransition documentation for more details and examples on using these transitions. Note: In QtQuick 1, this transition was applied to all items that were part of the positioner at the time of its creation. From QtQuick 2 onwards, positioners apply the populate transition to these items instead. See also add, ViewTransition, and Positioners example. This property holds the transition to be run for items that are part of this positioner at the time of its creation. The transition is run when the positioner is first created. The transition can use the ViewTransition property to access more details about the item that is being added. See the ViewTransition documentation for more details and examples on using these transitions. See also add, ViewTransition, and Positioners example. The spacing is the amount in pixels left empty between adjacent items. The default spacing is 0. See also Grid::spacing. |