Skip to content

Commit 4eeac1c

Browse files
committed
Fix passing QgsReferencedRec/Point from python to c++
1 parent cfdc3c7 commit 4eeac1c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/core/qgsapplication.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
#include "qgsunittypes.h"
4242
#include "qgsuserprofile.h"
4343
#include "qgsuserprofilemanager.h"
44+
#include "qgsreferencedgeometry.h"
4445

4546
#include "gps/qgsgpsconnectionregistry.h"
4647
#include "processing/qgsprocessingregistry.h"
@@ -149,6 +150,8 @@ void QgsApplication::init( QString profileFolder )
149150
qRegisterMetaType<QgsUnitTypes::LayoutUnit>( "QgsUnitTypes::LayoutUnit" );
150151
qRegisterMetaType<QgsFeatureIds>( "QgsFeatureIds" );
151152
qRegisterMetaType<QgsMessageLog::MessageLevel>( "QgsMessageLog::MessageLevel" );
153+
qRegisterMetaType<QgsReferencedRectangle>( "QgsReferencedRectangle" );
154+
qRegisterMetaType<QgsReferencedRectangle>( "QgsReferencedPoint" );
152155

153156
QString prefixPath( getenv( "QGIS_PREFIX_PATH" ) ? getenv( "QGIS_PREFIX_PATH" ) : applicationDirPath() );
154157
// QgsDebugMsg( QString( "prefixPath(): %1" ).arg( prefixPath ) );

0 commit comments

Comments
 (0)