反射类名

最后更新于:2022-04-02 02:14:15

[TOC] ## 反射类名 ``` QObject *obj = new QPushButton; obj->metaObject()->className(); // returns "QPushButton" QPushButton::staticMetaObject.className(); // returns "QPushButton" ```
';