-
-
Save xlab/2558aa068d49f0a2b6aa to your computer and use it in GitHub Desktop.
plugin.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <QtQml/qqml.h> | |
#include <QQmlExtensionPlugin> | |
class MyPluginMyClassPlugin : public QQmlExtensionPlugin { | |
Q_OBJECT | |
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface") | |
public: | |
void registerTypes(const char* uri) { | |
// ... | |
} | |
}; | |
#include "plugin.moc" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment