Visible Noise
The bits of me that you can see
Noise
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
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment