Is it possible to inject our own code into QVariant::canConvert?
I'm adding support for converting between our own all-purpose value container and the Qt version (QVariant), based mostly on a suggestion here How to support comparisons for QVariant objects containing a custom type?
I'm pretty sure the answer to this question is "it can't be done", browsing the source shows that the implementation of QVariant::canConvert does not call into the handler, but I thought I would ask anyway out of morbid curiosity.
Is there any random place in the QVariant implementation where we can get some sort of hook into this kind of functionality (without recompiling Qt) and if not, is the function on Handler used for anything/why does it exist? Mostly - any suggestions for working around this?