Is it possible to look up stylesheet values at runtime in Qt?
I'm working on a custom button derived from QPushButton
that has some stylesheet properties set. I'd like to be able to look up some stylesheet settings like border width, margin
, padding-top
, padding-left
, padding-right
, etc. Is this at all possible to do without calling widget->getStyleSheet()
and parsing out the values myself?