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

Details

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

    Description

      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.

      Attachments

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

        Activity

          People

            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

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes