Tuesday, September 09, 2014

Hide the tick box of QCheckbox

I was looking for a way to hide the tick box after it had been ticked. The checkbox was an item in a QListWidgetItem. I found that this did the job.

item->setData(Qt::CheckStateRole, QVariant());

No comments:

Post a Comment