C++ (Qt)void* ptr = 0;QString* s = reinterpret_cast<QString*>(ptr);
C++ (Qt)enum VariableType{ Int, Long, String, ...}; struct VariableData{ VariableType type; void *data;};
C++ (Qt)struct CVarPtr{ int mTypeID; union { int * mInt; QString * mStr; };};