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

qmllint: Warn about using width/height in Layouts

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Fixed
    • P3: Somewhat important
    • 6.4
    • 6.2
    • QML: Tooling
    • 4b3e99b9a28b0641265a4afed720e5359e35ffda

    Description

      Specifying width/height of an item in a layout does not make sense, as the layout will just overwrite it anyway. 

       

      To control width/height there, Layouts attached properties (preferredWidth, minHeight, maxWidth, ...) should be used instead.

       

      We cannot judge whether the specified width ought to be the preferred,min or maxWidth, but we can at least warn about its usage and point to some general documentation (documentation currently pending).

      Attachments

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

        Activity

          People

            max.goldstein Maximilian Goldstein
            fabiankosmale Fabian Kosmale
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes