PDA

View Full Version : setObjectName for QStandardItem



abk883
20th May 2010, 17:53
Hi

How can I specify an Object Name for a QStandardItem as I don't see any aPI in this class for setting the name of Object.
Do I need to subclass QStandardItem and Qobject into a new class.

Thanks

squidge
20th May 2010, 18:20
QStandardItem doesn't inherit QObject, therefore it doesn't have QObject's SetObjectName method.

However, you do have row, column, index and data.