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.
-Build and run the example app
-Press "Set some text" button => "Some text" will appears on both labels
-Press "Set empty text" button
-Only the above label is empty
-Both labels are empty
-Both labels are empty after resizing the window