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

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

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

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