----- Original Message ----- > Hi, > > I have a codebase that is using a C library and Qt. I have some > legacy code where structs from the C library are stored in a Qt/C++ > class using: > > void *userData; Hi Generally the C++ equivalent of the 'legacy' C typeless void pointer is the 'any' or 'variant' type, such as QVariant or Boost.Any. A+ Paul