Closed Hin-D closed 1 month ago
e.g. Objective-C, Swift or Java C++
e.g. v1.0.5 2.1.6
e.g. iOS, macOS or Android macOS
e.g. Cocoapods, Carthage, Maven, AAR Package or Git clone CMake
Post the outputs or screenshots for errors. Explain what you want by example or code in English.
Post the outputs or screenshots for errors.
Explain what you want by example or code in English.
我用 QT 开发,需要用到 WCDB,为了方便拓展,我希望做一个 table的基类实现 json 映射对象; 本来如果可以继承QObject是可以轻松实现对象遍历然后自己实现映射的,但继承QObject会报错,如下图;
WCDB 需要手动声明所有的 Field,应该是有记录到的,现在如何获取到这个 FiledName? 跪谢~
for(const auto &field : ObjectType::allFields()) { printf(field.syntax().name.data()) }
The language of WCDB
The version of WCDB
The platform of WCDB
The installation of WCDB
What's the issue?
我用 QT 开发,需要用到 WCDB,为了方便拓展,我希望做一个 table的基类实现 json 映射对象; 本来如果可以继承QObject是可以轻松实现对象遍历然后自己实现映射的,但继承QObject会报错,如下图;
WCDB 需要手动声明所有的 Field,应该是有记录到的,现在如何获取到这个 FiledName? 跪谢~