Hi all,
what is the replacement for CMapStringToPtr in qt to store maps of void pointers ?
Hi all,
what is the replacement for CMapStringToPtr in qt to store maps of void pointers ?
Thanks,
Rajesh.S
What is exactly that you want to implement?
In what way QMap does not answer your needs?
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
Let's see... We have a class that has a name "C"-"Map"-"String"-"To"-"Pointer". After accessing assistant and typing in "Map" you'll see QMap that is a template class that takes two parameters. First one is the key type and the other the value type, so without having any knowledge of Qt you might deduce a QMap<String,Pointer> combination and with a bit of knowledge of C++ and Qt you'd turn it into QMap<QString,void*>.
If you have any other similar doubts, please conduct a process such as described above before asking such questions.
rajeshs (21st December 2007)
sorry , here onwards i will definitly follow your way,
I was thinking before exact matching is there in Qt.
Thanks,
Rajesh.S
Bookmarks