Forum > QT

Combobox qt5 font size

(1/2) > >>

OH1KH:
EDIT: Sorry about wrong placement, This is not Installation related problem, but I can not delete this any more (why?)

Hi !
With search by words in subject resulted 0 hits.

System Fedora 35 with Lazarus 2.0.12

When form's font size is changed combobox font size does not change but TEdit font size changes.

This happens if LCL widget type is QT5.
When LCL widget type is GTK2 both font sizes are changed ok.

Code used to change font  is:


--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---for i := 0 to aForm.ComponentCount - 1 do begin    //edits, memo combo, spinedit ...    if (aForm.Components[i] is TEdit) then    begin      (aForm.Components[i] as TEdit).Font.Name := fEdits;      (aForm.Components[i] as TEdit).Font.Size := feSize    end;    if (aForm.Components[i] is TComboBox) then    begin      (aForm.Components[i] as TComboBox).Font.Name := fEdits;      (aForm.Components[i] as TComboBox).Font.Size := feSize    end;end;                                                                
This seems to be Lazarus/QT5 problem, or am I doing something wrong?

zeljko:
Please open an issue and attach example project.

OH1KH:
To be more precise:
The font in selection list of combobox changes ok, but when selection is done the visible font (or typed font if typing is allowed)  is not same size as in selection list (what was just set).

Well.
Then have to make small program for test & learn how to make issue with GitLab.
When I have time for that...

zeljko:
You mean that font size of combobox and drop down list aren't same ?

OH1KH:
https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/39549

Navigation

[0] Message Index

[#] Next page

Go to full version