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

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -