Hi,
i have a QGraphicsItem that i want to be hidden or shown, due to its checkmark which i want to place inside a TableWidget. What i have so far:
item->data(Qt::CheckStateRole);
item->setCeckState(Qt::Checked);
table->setItem(3,0,item);
QTableWidget *table = new QTableWidget(8,3);
QTableWidgetItem *item = new QTableWidgetItem(1);
item->data(Qt::CheckStateRole);
item->setCeckState(Qt::Checked);
table->setItem(3,0,item);
To copy to clipboard, switch view to plain text mode
... which creates a wonderful CheckBox inside my table. But how can i link the check mark state to my GraphicsItem?
I tried several signals provided by the QTableWidget class, but some of the ones i tried produced a compiler error stating, that this signal doesn't exist. And the others that work, don't seem to be appropriate for my problem.
Thanks in advance!
Bookmarks