QGIS API Documentation  3.2.0-Bonn (bc43194)
qgsquickplugin.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgsquickplugin.h
3  --------------------------------------
4  Date : Nov 2017
5  Copyright : (C) 2017 by Peter Petrik
6  Email : zilolv at gmail dot com
7  ***************************************************************************
8  * *
9  * This program is free software; you can redistribute it and/or modify *
10  * it under the terms of the GNU General Public License as published by *
11  * the Free Software Foundation; either version 2 of the License, or *
12  * (at your option) any later version. *
13  * *
14  ***************************************************************************/
15 
16 #ifndef QGSQUICKPLUGIN_H
17 #define QGSQUICKPLUGIN_H
18 
19 #include <QQmlExtensionPlugin>
20 
28 class QgsQuickPlugin : public QQmlExtensionPlugin
29 {
30  Q_OBJECT
31  Q_PLUGIN_METADATA( IID "org.qt-project.Qt.QQmlExtensionInterface" )
32  public:
33 
38  void registerTypes( const char *uri );
39 };
40 
41 #endif // QGSQUICKPLUGIN_H
42 
Qgis Qml Extension Plugin responsible for exposing C++ Qgis classes to QML.
void registerTypes(const char *uri)
Registers the QGIS QML types in the given uri.