Cannot select editor font when using Qt5 widgetset
- Lazarus/FPC Version: Lazarus 2.0.12 rUnknown FPC 3.2.2 x86_64-linux-qt5
- Operating System: Linux Manjaro 21.2.0
- CPU / Bitness: 64 b
What happens
The font used in the editor does not match the one I choose using the «Tools|Options…|Editor|Display» dialog: whatever font i choose, the font stays always the same and looks weird. This happens despite the fact that the Font dialog properly shows a preview of the font. (However, the preview in the «IDE options» dialog looks wrong in the same way as editor windows once I close the dialog.)
This only happens when I build the IDE using the Qt5 widgetset. With the Gtk2 widgetset, fonts change as expected.
The video posted as attachment shows the problem: lazarus-qt5-font-2021-11-21_10.11.39.mkv
This issue was mentioned in the forum, but I was not able to find an entry in this bugtracker. Sorry if I missed it!
What did you expect
Changing the font used in editor windows should work both with the Qt5 and the Gtk+2 widgetsets.
Steps to reproduce
- Compile Lazarus using the Qt5 widgetset
- Open a edit dialog
- Open «Tools|Options…|Editor|Display» and click «Select font»
- Change the editor font to whatever you like
- Close the «Select font» dialog