Solved Qt 5.12 quick controls 2 button height problem
-
Hi guys. My application buttons have not correct height in Qt 5.12,
while they are fine in Qt 5.11.
On this image , delete buttons should be rectangle.
In this one , the width and height of the button are the same ( 56) -
If you are using controls not from Templates there can be default paddings. Set
padding: 0
to remove them. -
Not worked.
-
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.