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

[REG 4.8->5.X] Adding QLabel to QHBoxLayout with certain AlignmentFlag(s) (left/right) causes missing repaint

    XMLWordPrintable

Details

    • 37f326297d45564298a2c8cb1958a81b858de57c

    Description

      Adding QLabel to QHBoxLayout with certain AlignmentFlags(at least AlignLeft, AlignRight and AlignHCenter) and calling QLabel::setText("") doesn't cause repainting and the old text stays on the label.

      Steps:
      -Build and run the example app
      -Press "Set some text" button => "Some text" will appears on both labels
      -Press "Set empty text" button

      Actual result:
      -Only the above label is empty

      Expected result:
      -Both labels are empty

      Note:
      -Both labels are empty after resizing the window

      Attachments

        1. qtbug42727.zip
          1 kB
        2. qtbug42727.zip
          2 kB
        3. qtbug42727_diag4.diff
          2 kB
        4. qtbug42727_diag5.diff
          1 kB

        Issue Links

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

          Activity

            People

              ulherman Ulf Hermann
              kehayryn Keijo Hayrynen
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes