Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2018-05

Control's default Height and AutoSize

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Gabor Boros

Hi All,

I have three machines. One physical with Windows 10 (1703) and two virtual, one with Ubuntu Server 14.04.1 + KDE4 and Qt4 and one with RHEL 7.5 + KDE4 and Qt4. Start a new project with trunk (57932), drop a TEdit on Form1 and change it's font to Droid Sans Mono Regular 10. With Windows the TEdit's original Height is 23, after font change 23 too. With Ubuntu 23 and 25, with RHEL 22 and 23. Why is the difference and what it's source?

Gabor

Reply by email

zeljko
to Gabor Boros
Gabor Boros wrote 9 lines
Hi All, I have three machines. One physical with Windows 10 (1703) and two virtual, one with Ubuntu Server 14.04.1 + KDE4 and Qt4 and one with RHEL 7.5 + KDE4 and Qt4. Start a new project with trunk (57932), drop a TEdit on Form1 and change it's font to Droid Sans Mono Regular 10. With Windows the TEdit's original Height is 23, after font change 23 too. With Ubuntu 23 and 25, with RHEL 22 and 23. Why is the difference and what it's source?

Default TEdit height (autosize=true) depends on Qt4 theme. Some themes, eg KDE breeze from fedora 26 gives 28 px which is taken from the current desktop environment, but eg -style windows it's size is 23.

zeljko

Reply by email

Gabor Boros
to zeljko

2018. 05. 14. 14:33 keltezéssel, zeljko írta:

Default TEdit height (autosize=true) depends on Qt4 theme. Some themes, eg KDE breeze from fedora 26 gives 28 px which is taken from the current desktop environment, but eg -style windows it's size is 23.

Thank you! After read your answer I realized RHEL use it's own RHEL7 named theme not the default Oxygen.

Gabor

Reply by email