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 -

android - IBM Worklight 6.1 [Application Error] There was a network error (file:///android_asset/www/index.html) -