Recent

Author Topic: TSpeedButton qt6 stylesheet  (Read 389 times)

big_M

  • Full Member
  • ***
  • Posts: 102
TSpeedButton qt6 stylesheet
« on: January 13, 2026, 08:22:29 pm »
Hey. I'm currently creating a stylesheet for my app. So far everything works fine, however I just cannot find how to style TSpeedButtons. It's not with QPushbutton, and not with QToolButton it seems. Anyone has an idea?

I have this as the qt6 reference: https://doc.qt.io/qt-6/stylesheet-reference.html

Soner

  • Sr. Member
  • ****
  • Posts: 328
Re: TSpeedButton qt6 stylesheet
« Reply #1 on: January 13, 2026, 08:37:28 pm »
TSpeedButton isn't QT-Control, LCL draws it itself. You have to use TButton.

big_M

  • Full Member
  • ***
  • Posts: 102
Re: TSpeedButton qt6 stylesheet
« Reply #2 on: January 13, 2026, 09:23:24 pm »
Hm, I feared something like this. Problem is, I need a toggle button with an icon. Can't do that with a TButton. TToggleBox can't do icons, and I think TBitBtn can't do toggling. TSpeedButton can do both, but no styling which I need also...

Soner

  • Sr. Member
  • ****
  • Posts: 328
Re: TSpeedButton qt6 stylesheet
« Reply #3 on: January 14, 2026, 04:30:39 pm »
Then use TToggleBox. It looks as if it is drawn by the underlying widget set.

big_M

  • Full Member
  • ***
  • Posts: 102
Re: TSpeedButton qt6 stylesheet
« Reply #4 on: January 14, 2026, 04:53:29 pm »
TToggleBox can't have an icon though, which I need.

 

TinyPortal © 2005-2018