Hi!
I tried to center the checkbox in QTableView by something like this:
Qt Code:
qApp->setStyleSheet("::indicator {subcontrol-position: center; subcontrol-origin: padding;}");To copy to clipboard, switch view to plain text mode
But it doesn't work for QTableView item (set by Qt::CheckStateRole in model), although it works good for any other usual widget like QCheckBox or QRadioButton.
Is that bug in Qt or maybe Qt just does't provide this stylesheet subcontrol feature for item views?
I see that other properties like e.g 'left' also work for checkbox indicator in view.
Bookmarks