I am using the following code to create QListWidgetItems:
newItem->setText("Item");
newItem->setFlags(Qt::ItemIsUserCheckable | Qt::ItemIsEnabled | Qt::ItemIsSelectable);
newItem->setCheckState(Qt::Unchecked);
ui.listImages->addItem(newItem);
QListWidgetItem* newItem = new QListWidgetItem();
newItem->setText("Item");
newItem->setFlags(Qt::ItemIsUserCheckable | Qt::ItemIsEnabled | Qt::ItemIsSelectable);
newItem->setCheckState(Qt::Unchecked);
ui.listImages->addItem(newItem);
To copy to clipboard, switch view to plain text mode
I now want to do something like:
connect(newItem, SIGNAL(toggled(bool)), this, SLOT(handleItemToggle(bool)));
connect(newItem, SIGNAL(toggled(bool)), this, SLOT(handleItemToggle(bool)));
To copy to clipboard, switch view to plain text mode
The problem is that QListWidgetItem does not expose ANY signals, and none of the of the QListWidget signals appear to have anything to do with check marks. Any ideas?
Thanks!
Bookmarks