Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef PLUGIN_TEST_PLUGIN_H
- #define PLUGIN_TEST_PLUGIN_H
- #include <QtDeclarative/QDeclarativeExtensionPlugin>
- #include <QtDeclarative/QDeclarativeItem>
- class A : public QDeclarativeItem
- {
- Q_OBJECT
- public:
- A(QDeclarativeItem *parent = 0);
- Q_INVOKABLE void printThis();
- };
- QML_DECLARE_TYPE(A)
- class B : public QDeclarativeItem
- {
- Q_OBJECT
- public:
- B(QDeclarativeItem *parent = 0);
- Q_INVOKABLE void printThis();
- Q_INVOKABLE void printA(A* p_a);
- };
- QML_DECLARE_TYPE(B)
- class plugin_testPlugin : public QDeclarativeExtensionPlugin
- {
- Q_OBJECT
- public:
- void registerTypes(const char *uri);
- };
- #endif // PLUGIN_TEST_PLUGIN_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement