阅读背景:

将QVariant中的枚举转换为整数

来源:互联网 

I write a library which uses Qt's meta type system. The user of my library can provide values of custom types which get wrapped in a QVariant. Later in some code internally in the library, I need to serialise this QVariant. I implemented serializers for a couple of types and I really don't need to support every type known to the Qt meta type system. I serialise the values in order to send them over the network using JSON.I write a library which uses Qt's meta type sys




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: