41 qRegisterMetaType< QList<QgsMapLayer *> >(
"QList<QgsMapLayer*>" );
42 qRegisterMetaType< QgsAttributes > (
"QgsAttributes" );
43 qRegisterMetaType< QgsCoordinateReferenceSystem >(
"QgsCoordinateReferenceSystem" );
44 qRegisterMetaType< QgsCoordinateTransformContext >(
"QgsCoordinateTransformContext" );
45 qRegisterMetaType< QgsFeature > (
"QgsFeature" );
46 qRegisterMetaType< QgsFeatureId > (
"QgsFeatureId" );
47 qRegisterMetaType< QgsPoint >(
"QgsPoint" );
48 qRegisterMetaType< QgsPointXY >(
"QgsPointXY" );
49 qRegisterMetaType< QgsUnitTypes::SystemOfMeasurement >(
"QgsUnitTypes::SystemOfMeasurement" );
50 qRegisterMetaType< QgsUnitTypes::DistanceUnit >(
"QgsUnitTypes::DistanceUnit" );
51 qRegisterMetaType< QgsCoordinateFormatter::FormatFlags >(
"QgsCoordinateFormatter::FormatFlags" );
52 qRegisterMetaType< QgsCoordinateFormatter::Format >(
"QgsCoordinateFormatter::Format" );
53 qRegisterMetaType< QVariant::Type >(
"QVariant::Type" );
55 qmlRegisterUncreatableType< QgsUnitTypes >( uri, 0, 1,
"QgsUnitTypes",
"Only enums from QgsUnitTypes can be used" );
56 qmlRegisterType< QgsProject >( uri, 0, 1,
"Project" );
57 qmlRegisterType< QgsQuickMapCanvasMap >( uri, 0, 1,
"MapCanvasMap" );
58 qmlRegisterType< QgsQuickMapSettings >( uri, 0, 1,
"MapSettings" );
59 qmlRegisterType< QgsQuickMapTransform >( uri, 0, 1,
"MapTransform" );
60 qmlRegisterType< QgsVectorLayer >( uri, 0, 1,
"VectorLayer" );
void registerTypes(const char *uri)
Registers the QGIS QML types in the given uri.