class PaintPath: public QObject, public QPainterPath{ Q_OBJECT public: void firstMethod(){}};
path->metaObject()->methodCount();