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

GridLayout lays out visible Items with width and height 0

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P1: Critical
    • None
    • 6.4.1
    • Quick: Layouts
    • None
    • All, macOS

    Description

      It seems there is a behavior change how GridLayout (and maybe other layouts as well) handles Items with effective size 0 that are visible=true.

      With Qt 6.2.6 the attached code renders like this:

      With Qt 6.4.1 it renders like this:

      Making the magenta rectangle to visible=false unifies the behavior.

      Not sure this is a bug or if there was a bug fixed that changes this behavior.

      Cheers,

      Max

      Attachments

        Activity

          People

            smd Jan Arve
            hrabowski Maximilian Hrabowski
            Votes:
            3 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated: