qt - Using QGraphicsItem as key for QHash -
before embark using datatype , beginner in qt, possible use qgraphicsitem
key of qhash
? seems legal declare like:
qhash<qgraphicsitem*, sometype> hashname;
so guess allowed.
thanks.
yes. i'd use qmap<qgraphicsitem*, sometype>
, doesn't make difference, though. also, can inherit qgraphicsitem
attach data items.
Comments
Post a Comment