Recent

Author Topic: Qt5: I can't change buttons width  (Read 1200 times)

zoltanleo

  • Hero Member
  • *****
  • Posts: 522
Qt5: I can't change buttons width
« on: October 31, 2022, 10:37:49 pm »
Hi folks

I am creating buttons in embedded forms at runtime. I change their width at runtime so that the width of the button is equal to the height of the combobox component.

I manage to do it for win and gtk2 but not for Qt5

Can someone explain to me why this is happening?

My test project here
https://bitbucket.org/zoltanleo/runtime_panels/src/main/

More pictures:
qt5: https://i.imgur.com/Wm2OEav.mp4
gkt2: https://i.imgur.com/H0Nk1o6.mp4
win 10: https://i.imgur.com/sFbIqQJ.mp4
Win10 LTSC x64/LMDE7-x11-x86_64(gtk2/gtk3)/Fedora-44-wayland-x86_64(gtk2/gtk3)/ Kubuntu-24-x11-x86_64(qt5/qt6)/KDE Neon-wayland-x86_64(qt5/qt6)/Darwin Cocoa x86_64 (15.7.7):
Lazarus x32_64 (trunk); FPC(trunk), FireBird 5.0.3 x86_64; IBX by TonyW

Sorry for my bad English, I'm using translator ;)

 

TinyPortal © 2005-2018