Forum > QT
TSpeedButton qt6 stylesheet
(1/1)
big_M:
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:
TSpeedButton isn't QT-Control, LCL draws it itself. You have to use TButton.
big_M:
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:
Then use TToggleBox. It looks as if it is drawn by the underlying widget set.
big_M:
TToggleBox can't have an icon though, which I need.
Navigation
[0] Message Index