[Qt-interest] Avoiding loosing selection in connected view when calling setData on QAbstractItemModel.
MARTIN Pierre
hickscorp at gmail.com
Mon Aug 8 21:25:10 CEST 2011
Hello,
i am using a QSqlTableModel being viewed by a QListView. The model's index column for which i'm calling setData isn't even listed by the view (It's on purpose, it contains QByteArray binary data being generated by the GUI).
i'd like to know how would it be possible to avoid selection loss while calling setData on a model? Is there any way to set the data at a given index without triggering the internal dataChanged() for this model?
Thank you for your help,
Pierre.
More information about the Qt-interest-old
mailing list