dimanche 22 septembre 2019

How to get current padding of a widget?

I know how to tweak the padding property of a widget:

widget.setStyleSheet("padding: 5px 5px 5px 5px");

or

widget.setStyleSheet("padding: 5px");

Which does same padding all sides.

But how do I get current padding? I don't see a way to qDebug() << padding.

Reference: https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qcombobox

Aucun commentaire:

Enregistrer un commentaire