Details
-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
None
-
5.12.4
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.