Yes, probably it's right, itemChanged is thrown because the flags of the item are changed.
But the docs specifies "the content of the item", this is why I was a bit surprised when I've seen that the signal is thrown also when I change the flags.
Thanks for the suggestion but how should I use that signal ? I've never used models, that's my problem.
I guess I have to connect to the model of the QTableWidget...
Added after 5 minutes:
I've tried now in this way:
connect (m_TreeWidget->model(), SIGNAL(dataChanged (const QModelIndex&, const QModelIndex&)),
this , SLOT (ItemDataChanged(const QModelIndex&, const QModelIndex&)) );
connect (m_TreeWidget->model(), SIGNAL(dataChanged (const QModelIndex&, const QModelIndex&)),
this , SLOT (ItemDataChanged(const QModelIndex&, const QModelIndex&)) );
To copy to clipboard, switch view to plain text mode
but the signal is emitted also when the flags are set.
Thanks anyway.
Bookmarks