From the doc http://doc.qt.nokia.com/stable/qtree...html#setFlags:

void QTreeWidgetItem::setFlags ( Qt::ItemFlags flags )

Sets the flags for the item to the given flags. These determine whether the item can be selected or modified. This is often used to disable an item.
and from http://doc.qt.nokia.com/stable/qtree...l#itemChanged:

void QTreeWidget::itemChanged ( QTreeWidgetItem * item, int column ) [signal]

This signal is emitted when the contents of the column in the specified item changes.
But when I call item->setFlags(...) with which I don't change the contents of the column, a itemChanged signal is thrown.
My problem is that I have a plugin connected to that signal and it should react only when the content has been changed, not the flags.

Is there an elegant way to solve this problem ? (I have a solution but it looks more like a hack).

thanks