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

[REG 5.9.3->5.9.4]: When calling ensurePolished() on a QLabel in a layout before it is shown and then adding another one will cause them to be misaligned

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • None
    • 5.12.4
    • QPA
    • iOS/tvOS/watchOS

    Description

      When calling ensurePolished() on a QLabel in a layout before it is shown and then adding another one will cause them to be misaligned. This was introduced in qtbase with ba44cdae38406c429c7fb43863a6883bd0f79cf5 when the safe area handling was added. To workaround this issue then calling:

      setAttribute(Qt::WA_ContentsMarginsRespectsSafeArea, false);
      

      on the misaligned label is enough.

      Attachments

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

        Activity

          People

            vhilshei Volker Hilsheimer
            andysh Andy Shaw
            Veli-Pekka Heinonen Veli-Pekka Heinonen
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes