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?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…