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

Layout with non even height leads to unecessarily resizing smaller child item's height to non pixel aligned value

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.6.2, 5.8.0
    • Quick: Layouts
    • None
    • Linux

    Description

      Assume a rowlayout of height 37 with a centered child with an implicit height 30.

      Expected result:

      • height = 30
      • y = 4 (with a gap of 3 the other side of the item)
        or possibly even y =3.5

      What we get:

      • y = 4
      • height = 29.5

      This is an unexpected height causing rendering bugs, and it's not even achieving a consistent margin.

      Minimal test cast attached. Text item at the bottom shows the corrupted item's height.

      Attachments

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

        Activity

          People

            smd Jan Arve
            davidedmundson David Edmundson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes