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

Qt Quick Layouts: Alias between "gap" and "spacing"

    XMLWordPrintable

Details

    Description

      The new FlexBoxLayout type has a gap/columnGap/rowGap property: https://doc-snapshots.qt.io/qt6-6.10/qml-qtquick-layouts-flexboxlayout.html#gap-prop

       

      While this is consistent with W3C naming (https://www.w3.org/TR/css-align-3/#gaps), it is unfortunately inconsistent with our existing spacing/columnSpacing/rowSpacing API used by other Layouts (https://doc.qt.io/qt-6/qml-qtquick-layouts-columnlayout.html#spacing-prop) and even by Widgets(https://doc.qt.io/qt-6/qlayout.html#spacing-prop)

       

      Should we provide an alias to map gap <-> spacing?

      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
            skoh-qt Sze Howe Koh
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes