Hi.
I have a simple QTableView displaying data from QStandardItemModel, but now I need one column to be like a check box and not ordinary text. How would I acchieve that? Do I have to create/extend new class from QTableView, or can that be controled via QStandardItemModel somehow? A simple snippet of code would be very useful, much thanks.
Added after 9 minutes:
I've googled it out and looks ok.
Qt Code:
stItem3->setCheckable(true); //stItem3->setCheckState(Qt::Unchecked); stItem3->setCheckState(Qt::Checked);To copy to clipboard, switch view to plain text mode
Bookmarks