Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-24486

Add properties for accessing the current number of columns and rows in Grid and GridView

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • Icon: P4: Low P4: Low
    • None
    • 5.0.0

      It would be useful to find the current number of columns and rows that are laid out in a Grid and GridView.

      Grid has 'rows' and 'columns' properties but these are used for setting the desired number of rows and columns, which may be different from the actual number of rows and columns if there are not enough items in the Grid.

      Perhaps the solution is to add read-only "effectiveRows" and "effectiveColumns" properties to Grid and GridView (in the style of the read-only effectiveOpacity, effectiveLayoutDirection, etc.) that report the actual number of columns and rows.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            bealam Bea Lam (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes