Qt5 TLabel in vertical rotation, text gets clipped on resize in the designer
Original Reporter info from Mantis: funlw65
-
Reporter name: funlw65
Original Reporter info from Mantis: funlw65
- Reporter name: funlw65
Description:
When you set the Font of the TLabel in vertical rotation (900 or 2600 rotation value) and then try to resize the rectangle of the label in Designer, the text (caption) gets clipped. I've made a little movie on youtube where you can see the behavior.
https://youtu.be/v-a7QVfvuKU
The compiled form will show just the first two letters of the text/caption in Qt5 case, and if you use the gtk2 widget set, the label text will not be shown at all.
Steps to reproduce:
- Select the TLabel and place it in the form;
- Set the Autosize attribute to False;
- Re-dimension the label's frame to form a square to see where the text goes when you rotate it;
- Set the rotation of the font to 900 or 2600 - now the text goes to a vertical position;
- Align it Top or Bottom (BTW, only Top works correctly);
- Now, because our frame is in a square form, try to resize it to enclose the label. You will see that approaching the text, it will get clipped by "an invisible rectangle - you really have to see the video, the animation there is funny".
Mantis conversion info:
- Mantis ID: 38328
- Version: 2.1 (SVN)
- Fixed in revision: 64361 (#746dea29)