Skip to content

Commit 5315cff

Browse files
committed
Allow Qt to search for Qt plugins (e.g. sqldrivers) in our plugin directory
Without this it is necessary to explicitly provide QT_PLUGIN_PATH environment variable for Qt plugins we build (e.g. Oracle DB sql driver)
1 parent 119b7fd commit 5315cff

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/core/qgsapplication.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,8 @@ void QgsApplication::init( QString customConfigPath )
178178
}
179179
ABISYM( mSystemEnvVars ) = systemEnvVarMap;
180180

181+
// allow Qt to search for Qt plugins (e.g. sqldrivers) in our plugin directory
182+
QCoreApplication::addLibraryPath( pluginPath() );
181183
}
182184

183185
QgsApplication::~QgsApplication()

0 commit comments

Comments
 (0)