Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
Widgetset
»
QT
»
Scaling the QT 5 application
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
We are starting to use La...
by
ALLIGATOR
[
Today
at 05:19:46 am]
The Future of FPC
by
ALLIGATOR
[
Today
at 05:01:20 am]
ThorVG - test (lightweigh...
by
ALLIGATOR
[
Today
at 04:55:46 am]
fpGUI Toolkit v2.0.1 has ...
by
cdbc
[
Today
at 02:27:42 am]
[ANN] fpGUI Toolkit v2.0....
by
Graeme
[
Today
at 01:43:31 am]
Frustrating Error When us...
by
TYDQ
[
Today
at 01:38:26 am]
Fast Canvas Library V1.05...
by
backprop
[
Today
at 01:32:51 am]
; after then
by
Martin_fr
[
Today
at 12:38:46 am]
Are the source files for ...
by
Martin_fr
[
Today
at 12:26:57 am]
Debian removes FPC/Lazaru...
by
kupferstecher
[February 13, 2026, 10:29:53 pm]
AVRPascal – free code edi...
by
ackarwow
[February 13, 2026, 10:08:59 pm]
Select rectangle of the i...
by
backprop
[February 13, 2026, 08:16:27 pm]
How to determine the unkn...
by
LV
[February 13, 2026, 07:37:32 pm]
how to enable multihelper...
by
mas steindorff
[February 13, 2026, 07:03:20 pm]
Lazarus/FreePascal Bug
by
Bart
[February 13, 2026, 06:27:28 pm]
Questions from a Windows ...
by
CM630
[February 13, 2026, 06:15:33 pm]
Duplicated icon in the Wi...
by
w click
[February 13, 2026, 05:47:49 pm]
AdvancedHTTPServer: A Go-...
by
LeP
[February 13, 2026, 03:01:15 pm]
Status of FPC 3.4.0 or FP...
by
gidesa
[February 13, 2026, 12:35:41 pm]
Notetask 1.1.1 - Free cro...
by
AlexanderT
[February 13, 2026, 12:00:08 pm]
Bee Hive solitaire
by
TBMan
[February 13, 2026, 03:22:09 am]
AI Created Music
by
Tony Stone
[February 13, 2026, 03:02:08 am]
Send form to true left an...
by
mas steindorff
[February 13, 2026, 02:39:34 am]
Help needed compiling
by
jamie
[February 13, 2026, 02:33:02 am]
Free Pascal for a small e...
by
dbannon
[February 13, 2026, 02:24:49 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Scaling the QT 5 application (Read 797 times)
7bit
New Member
Posts: 24
Scaling the QT 5 application
«
on:
September 17, 2025, 09:27:46 pm »
My application does not scale when I change the scale of the desktop environment. When I launch my application, the interface does not scale. Although Lazarus IDE with QT5 scales. Everything is working fine in Windows. Maybe something needs to be turned on?
Logged
zeljko
Hero Member
Posts: 1830
Re: Scaling the QT 5 application
«
Reply #1 on:
September 17, 2025, 09:47:38 pm »
Have you turned on scaling in your project options (in that case you'll have Application.Scaled := True in your .lpr file), or just add manually APplication.Scaled := True in your .lpr, before Application.initialize.
Logged
7bit
New Member
Posts: 24
Re: Scaling the QT 5 application
«
Reply #2 on:
September 18, 2025, 06:06:07 am »
Yes. I'm creating a simple QT5 application and it also doesn't scale. I was wrong about Lazarus. It doesn't scale either. This GTK2 build scales, but QT5 does not.
My IDE: Lazarus 4.3 (rev lazarus_4_2-26-g44b59001af) FPC 3.2.3 x86_64-linux-qt5
OS: Alt Workstation 10.4 (Mate Desktop)
Logged
zeljko
Hero Member
Posts: 1830
Re: Scaling the QT 5 application
«
Reply #3 on:
September 18, 2025, 08:06:14 am »
Qt5 > 5.14 and Qt 6 changed how they use scaling. DPI is not relevant anymore but only scale eg 1.5, 2.0 etc. So to test if it'll work for you try this from terminal: export QT_FONT_DPI=96 export QT_SCALE_FACTOR=1.5 ./yourqt5application .
Logged
7bit
New Member
Posts: 24
Re: Scaling the QT 5 application
«
Reply #4 on:
September 18, 2025, 01:18:32 pm »
Thanks! It works. It's just not very nice; the app just scales down the low-resolution icons. When I set QT_FONT_DPI=144 and removed QT_SCALE_FACTOR, the app started using higher-resolution icons. I liked the result.
Logged
zeljko
Hero Member
Posts: 1830
Re: Scaling the QT 5 application
«
Reply #5 on:
September 18, 2025, 03:34:51 pm »
It is pretty messy with scaling qt5 and qt6 nowadays (in LCL perspective). Note that under KDE Plasma 5 I don't have to export anything for qt5 widgetset, but must for qt6. On KDE Plasma 6 is viceversa
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Widgetset
»
QT
»
Scaling the QT 5 application
TinyPortal
© 2005-2018