Logo Search packages:      
Sourcecode: qt4-x11 version File versions

void QGraphicsItem::setData ( int  key,
const QVariant value 
) [inherited]

Sets this item's custom data for the key key to value.

Custom item data is useful for storing arbitrary properties for any item. Qt does not use this feature for storing data; it is provided solely for the convenience of the user.

See also:

Definition at line 3816 of file qgraphicsitem.cpp.

Referenced by View::addItems().

    qt_dataStore()->data[this][key] = value;

Generated by  Doxygen 1.6.0   Back to index