Hi, 2013/9/21 David Faure: >> 3. Right now the Field struct stores a QString and a long long. Certainly >> there must be a way to just use one type. I guess QVariant has too much >> overhead to be used, but something like that. > > That would be "union" instead of "struct", very simply. I'm not sure why we're > not using that, actually. Because it's impossible ;-) You cannot add types with non-trivial constructors or destructors to a union. The compiler wouldn't know what to do if such a union went into or out of scope. Regards, Frank