Furthermore the method is not virtual so overriding it doesn't make any sense. And the source code for the method will not do you much good, here it is:
Qt Code:
  1. QVariant QGraphicsItem::data(int key) const
  2. {
  3. QGraphicsItemCustomDataStore *store = qt_dataStore();
  4. if (!store->data.contains(this))
  5. return QVariant();
  6. return store->data.value(this).value(key);
  7. }
To copy to clipboard, switch view to plain text mode