Qt 5.12 quick controls 2 button height problem
Solved
QML and Qt Quick
-
If you are using controls not from Templates there can be default paddings. Set
padding: 0
to remove them. -
Post source of your button then.
-
@IntruderExcluder
https://paste.ubuntu.com/p/kWvM7dH3Qy/
it's a simple example
In this picture the height and width of the button is 30.Important NOTE: It just happen on Material style.
-
Instead of padding in material style used inset. Set this to fix your problem:
topInset: 0 bottomInset: 0
-
@IntruderExcluder
It worked.
Thank you man. I love u.