[Qt] Autosizing a groupbox containing a TEdit with a custom font results in an endless loop
Original Reporter info from Mantis: jonas@freepascal.org
-
Reporter name: Jonas Maebe
Original Reporter info from Mantis: jonas@freepascal.org
- Reporter name: Jonas Maebe
Description:
Compile and run the attached project. It should show a window similar to the attached gtk2 screenshot (although gtk2 seems to ignore the font for the combobox, but that's another issue).
Instead, the lcl goes into an endless loop because groupbox2's size keeps growing. You can see that by adding an onresize handler and printing out the width/height in it.
Ways to prevent the endless loop:
a) change the font of groupbox1 and groupbox2 in the object inspector from Courier into System, or
b) open the anchor editor for groupbox2 and remove the left anchor to groupbox1
Steps to reproduce:
Compiler and run the attached project
Mantis conversion info:
- Mantis ID: 16348
- OS: Linux
- OS Build: Ubuntu 9.04
- Build: 24956
- Platform: x86-64
- Version: 0.9.29 (SVN)
- Fixed in revision: 25519 (#d7de33e1)