Hook up custom variable types and classes in QVariant. More...
#include <bpsvariant.h>
Static Public Member Functions | |
template<typename T > | |
static void | registerCompare () |
Register custom type/class for QVariant equal operator. | |
template<typename F , typename T > | |
static void | registerConvertTo () |
Register custom type for QVariant conversion to other types. More... | |
Hook up custom variable types and classes in QVariant.
By hooking up, it is possible to use the compare operator of the class instead of just comparing the value of the data pointers. Also, direct conversion to other known QVariant types is possible.
Limitations given by current QVariant implementation:
Example usage in a class:
Usage example:
|
inlinestatic |