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

Popular posts from this blog

css - I want to align grid in center -

python - SWIG function not printing output -

oop - Function for all prototypes - Javascript -