QGIS API Documentation
3.2.0-Bonn (bc43194)
|
Extends QApplication to provide access to QGIS specific resources such as theme paths, database paths etc. More...
#include <qgsapplication.h>
Public Types | |
enum | Cursor { ZoomIn, ZoomOut, Identify, CrossHair, CapturePoint, Select, Sampler } |
The Cursor enum defines constants for QGIS custom cursors. More... | |
enum | endian_t { XDR = 0, NDR = 1 } |
Constants for endian-ness. More... | |
Signals | |
void | customVariablesChanged () |
Emitted whenever a custom global variable changes. More... | |
void | nullRepresentationChanged () |
This string is used to represent the value NULL throughout QGIS. More... | |
void | preNotify (QObject *receiver, QEvent *event, bool *done) |
Public Member Functions | |
QgsApplication (int &argc, char **argv, bool GUIenabled, const QString &profileFolder=QString(), const QString &platformName="desktop") | |
~QgsApplication () override | |
bool | event (QEvent *event) override |
Watch for QFileOpenEvent. More... | |
bool | notify (QObject *receiver, QEvent *event) override |
Catch exceptions when sending event to receiver. More... | |
Static Public Member Functions | |
static QString | absolutePathToRelativePath (const QString &apath, const QString &targetPath) |
Converts absolute path to path relative to target. More... | |
static QgsActionScopeRegistry * | actionScopeRegistry () |
Returns the action scope registry. More... | |
static QString | activeThemePath () |
Returns the path to the currently active theme directory. More... | |
static QgsAnnotationRegistry * | annotationRegistry () |
Returns the application's annotation registry, used for managing annotation types. More... | |
static QString | appIconPath () |
Gets application icon. More... | |
static void | applyGdalSkippedDrivers () |
Apply the skipped drivers list to gdal. More... | |
static QgsAuthManager * | authManager () |
Returns the application's authentication manager instance. More... | |
static QString | authorsFilePath () |
Returns the path to the authors file. More... | |
static QString | buildOutputPath () |
Returns path to the build output directory. Valid only when running from build directory. More... | |
static QString | buildSourcePath () |
Returns path to the source directory. Valid only when running from build directory. More... | |
static QgsColorSchemeRegistry * | colorSchemeRegistry () |
Returns the application's color scheme registry, used for managing color schemes. More... | |
static QString | contributorsFilePath () |
Returns the path to the contributors file. More... | |
static bool | createDatabase (QString *errorMessage=nullptr) |
initialize qgis.db More... | |
static bool | createThemeFolder () |
Create the users theme folder. More... | |
static QVariantMap | customVariables () |
Custom expression variables for this application. More... | |
static QgsDataItemProviderRegistry * | dataItemProviderRegistry () |
Returns the application's data item provider registry, which keeps a list of data item providers that may add items to the browser tree. More... | |
static QString | defaultStylePath () |
Returns the path to default style (works as a starting point). More... | |
static QString | defaultThemePath () |
Returns the path to the default theme directory. More... | |
static QString | defaultThemesFolder () |
Returns the path to default themes folder from install (works as a starting point). More... | |
static QString | developersMapFilePath () |
Returns the path to the developers map file. More... | |
static QString | donorsFilePath () |
Returns the path to the donors file. More... | |
static endian_t | endian () |
Returns whether this machine uses big or little endian. More... | |
template<typename T > | |
static void | endian_swap (T &value) |
Swap the endianness of the specified value. More... | |
static void | exitQgis () |
deletes provider registry and map layer registry More... | |
static QgsFieldFormatterRegistry * | fieldFormatterRegistry () |
Gets the registry of available field formatters. More... | |
static QCursor | getThemeCursor (Cursor cursor) |
Helper to get a theme cursor. More... | |
static QIcon | getThemeIcon (const QString &name) |
Helper to get a theme icon. More... | |
static QPixmap | getThemePixmap (const QString &name) |
Helper to get a theme icon as a pixmap. More... | |
static QgsGpsConnectionRegistry * | gpsConnectionRegistry () |
Returns the application's GPS connection registry, used for managing GPS connections. More... | |
static QString | i18nPath () |
Returns the path to the translation directory. More... | |
static QString | iconPath (const QString &iconFile) |
Returns path to the desired icon file. More... | |
static QString | iconsPath () |
Returns the path to the icons image directory. More... | |
static void | init (QString profileFolder=QString()) |
This method initializes paths etc for QGIS. More... | |
static void | initQgis () |
loads providers More... | |
static QgsApplication * | instance () |
Returns the singleton instance of the QgsApplication. More... | |
static bool | isRunningFromBuildDir () |
Indicates whether running from build directory (not installed) More... | |
static QgsLayoutItemRegistry * | layoutItemRegistry () |
Returns the application's layout item registry, used for layout item types. More... | |
static QStringList | layoutTemplatePaths () |
Returns the paths to layout template directories. More... | |
static QString | libexecPath () |
Returns the path with utility executables (help viewer, crssync, ...) More... | |
static QString | libraryPath () |
Returns the path containing qgis_core, qgis_gui, qgispython (and other) libraries. More... | |
static QString | licenceFilePath () |
Returns the path to the licence file. More... | |
static QString | locale () |
Returns the QGIS locale. More... | |
static int | maxThreads () |
Gets maximum concurrent thread count. More... | |
static QgsMessageLog * | messageLog () |
Returns the application's message log. More... | |
static QString | metadataPath () |
Returns the path to the metadata directory. More... | |
static QgsNetworkContentFetcherRegistry * | networkContentFetcherRegistry () |
Returns the application's network content registry used for fetching temporary files during QGIS session. More... | |
static QString | nullRepresentation () |
This string is used to represent the value NULL throughout QGIS. More... | |
static QString | osName () |
Returns a string name of the operating system QGIS is running on. More... | |
static QgsPageSizeRegistry * | pageSizeRegistry () |
Returns the application's page size registry, used for managing layout page sizes. More... | |
static QgsPaintEffectRegistry * | paintEffectRegistry () |
Returns the application's paint effect registry, used for managing paint effects. More... | |
static QString | pkgDataPath () |
Returns the common root path of all application data directories. More... | |
static QString | platform () |
Returns the QGIS platform name, e.g., "desktop" or "server". More... | |
static QgsPluginLayerRegistry * | pluginLayerRegistry () |
Returns the application's plugin layer registry, used for managing plugin layer types. More... | |
static QString | pluginPath () |
Returns the path to the application plugin directory. More... | |
static QString | prefixPath () |
Returns the path to the application prefix directory. More... | |
static QgsProcessingRegistry * | processingRegistry () |
Returns the application's processing registry, used for managing processing providers, algorithms, and various parameters and outputs. More... | |
static QgsRuntimeProfiler * | profiler () |
Returns the application runtime profiler. More... | |
static QgsProjectStorageRegistry * | projectStorageRegistry () |
Returns registry of available project storage implementations. More... | |
static QString | qgisAuthDatabaseFilePath () |
Returns the path to the user authentication database file: qgis-auth.db. More... | |
static QString | qgisMasterDatabaseFilePath () |
Returns the path to the master qgis.db file. More... | |
static QString | qgisSettingsDirPath () |
Returns the path to the settings directory in user's home dir. More... | |
static QString | qgisUserDatabaseFilePath () |
Returns the path to the user qgis.db file. More... | |
static QString | qmlImportPath () |
Returns the path where QML components are installed for QGIS Quick library. More... | |
static QgsRasterRendererRegistry * | rasterRendererRegistry () |
Returns the application's raster renderer registry, used for managing raster layer renderers. More... | |
static void | registerOgrDrivers () |
Register OGR drivers ensuring this only happens once. More... | |
static QString | relativePathToAbsolutePath (const QString &rpath, const QString &targetPath) |
Converts path relative to target to an absolute path. More... | |
static Qgs3DRendererRegistry * | renderer3DRegistry () |
Returns registry of available 3D renderers. More... | |
static QgsRendererRegistry * | rendererRegistry () |
Returns the application's renderer registry, used for managing vector layer renderers. More... | |
static QString | reportStyleSheet () |
Returns a standard css style sheet for reports. More... | |
static QString | resolvePkgPath () |
Calculate the application pkg path. More... | |
static void | restoreGdalDriver (const QString &driver) |
Sets the GDAL_SKIP environment variable to exclude the specified driver and then calls GDALDriverManager::AutoSkipDrivers() to unregister it. More... | |
static QString | serverResourcesPath () |
Returns the path to the server resources directory. More... | |
static void | setAuthDatabaseDirPath (const QString &authDbDirPath) |
Alters authentication data base directory path - used by 3rd party apps. More... | |
static void | setCustomVariable (const QString &name, const QVariant &value) |
Set a single custom expression variable. More... | |
static void | setCustomVariables (const QVariantMap &customVariables) |
Custom expression variables for this application. More... | |
static void | setDefaultSvgPaths (const QStringList &pathList) |
Alters default svg paths - used by 3rd party apps. More... | |
static void | setFileOpenEventReceiver (QObject *receiver) |
Sets the FileOpen event receiver. More... | |
static void | setMaxThreads (int maxThreads) |
Set maximum concurrent thread count. More... | |
static void | setNullRepresentation (const QString &nullRepresentation) |
This string is used to represent the value NULL throughout QGIS. More... | |
static void | setPkgDataPath (const QString &pkgDataPath) |
Alters pkg data path - used by 3rd party apps. More... | |
static void | setPluginPath (const QString &pluginPath) |
Alters plugin path - used by 3rd party apps. More... | |
static void | setPrefixPath (const QString &prefixPath, bool useDefaultPaths=false) |
Alters prefix path - used by 3rd party apps. More... | |
static void | setThemeName (const QString &themeName) |
Set the active theme to the specified theme. More... | |
static void | setUITheme (const QString &themeName) |
Set the current UI theme used to style the interface. More... | |
static QRegExp | shortNameRegExp () |
Returns the short name regular expression for line edit validator. More... | |
static QString | showSettings () |
Convenience function to get a summary of the paths used in this application instance useful for debugging mainly. More... | |
static void | skipGdalDriver (const QString &driver) |
Sets the GDAL_SKIP environment variable to include the specified driver and then calls GDALDriverManager::AutoSkipDrivers() to unregister it. More... | |
static QStringList | skippedGdalDrivers () |
Returns the list of gdal drivers that should be skipped (based on GDAL_SKIP environment variable) More... | |
static QString | splashPath () |
Returns the path to the splash screen image directory. More... | |
static QString | sponsorsFilePath () |
Returns the path to the sponsors file. More... | |
static QString | srsDatabaseFilePath () |
Returns the path to the srs.db file. More... | |
static QgsSvgCache * | svgCache () |
Returns the application's SVG cache, used for caching SVG images and handling parameter replacement within SVG files. More... | |
static QStringList | svgPaths () |
Returns the paths to svg directories. More... | |
static QgsSymbolLayerRegistry * | symbolLayerRegistry () |
Returns the application's symbol layer registry, used for managing symbol layers. More... | |
static QMap< QString, QString > | systemEnvVars () |
Returns the system environment variables passed to application. More... | |
static QgsTaskManager * | taskManager () |
Returns the application's task manager, used for managing application wide background task handling. More... | |
static QString | themeName () |
Set the active theme to the specified theme. More... | |
static QString | translatorsFilePath () |
Returns the path to the sponsors file. More... | |
static QHash< QString, QString > | uiThemes () |
All themes found in ~/.qgis3/themes folder. More... | |
static QString | userFullName () |
Returns the user's operating system login account full display name. More... | |
static QString | userLoginName () |
Returns the user's operating system login account name. More... | |
static QString | userStylePath () |
Returns the path to user's style. More... | |
static QString | userThemesFolder () |
Returns the path to user's themes folder. More... | |
Static Public Attributes | |
static const char * | QGIS_APPLICATION_NAME = "QGIS3" |
static const char * | QGIS_ORGANIZATION_DOMAIN = "qgis.org" |
static const char * | QGIS_ORGANIZATION_NAME = "QGIS" |
Extends QApplication to provide access to QGIS specific resources such as theme paths, database paths etc.
This is a subclass of QApplication and should be instantiated in place of QApplication. Most methods are static in keeping with the design of QApplication.
This class hides platform-specific path information and provides a portable way of referencing specific files and directories. Ideally, hard-coded paths should appear only here and not in other modules so that platform-conditional code is minimized and paths are easier to change due to centralization.
Definition at line 66 of file qgsapplication.h.
The Cursor enum defines constants for QGIS custom cursors.
Definition at line 329 of file qgsapplication.h.
QgsApplication::QgsApplication | ( | int & | argc, |
char ** | argv, | ||
bool | GUIenabled, | ||
const QString & | profileFolder = QString() , |
||
const QString & | platformName = "desktop" |
||
) |
Definition at line 125 of file qgsapplication.cpp.
|
override |
Definition at line 290 of file qgsapplication.cpp.
|
static |
Converts absolute path to path relative to target.
Definition at line 1240 of file qgsapplication.cpp.
|
static |
Returns the action scope registry.
Definition at line 1489 of file qgsapplication.cpp.
|
static |
Returns the path to the currently active theme directory.
Definition at line 466 of file qgsapplication.cpp.
|
static |
Returns the application's annotation registry, used for managing annotation types.
Definition at line 1745 of file qgsapplication.cpp.
|
static |
Gets application icon.
Definition at line 481 of file qgsapplication.cpp.
|
static |
Apply the skipped drivers list to gdal.
Definition at line 1379 of file qgsapplication.cpp.
|
static |
Returns the application's authentication manager instance.
Definition at line 1055 of file qgsapplication.cpp.
|
static |
Returns the path to the authors file.
Definition at line 734 of file qgsapplication.cpp.
|
inlinestatic |
Returns path to the build output directory. Valid only when running from build directory.
Definition at line 514 of file qgsapplication.h.
|
inlinestatic |
Returns path to the source directory. Valid only when running from build directory.
Definition at line 512 of file qgsapplication.h.
|
static |
Returns the application's color scheme registry, used for managing color schemes.
Definition at line 1660 of file qgsapplication.cpp.
|
static |
Returns the path to the contributors file.
Contributors are people who have submitted patches but don't have commit access.
Definition at line 739 of file qgsapplication.cpp.
|
static |
initialize qgis.db
Definition at line 1494 of file qgsapplication.cpp.
|
static |
Create the users theme folder.
Definition at line 1389 of file qgsapplication.cpp.
|
static |
Custom expression variables for this application.
This does not include generated variables (like system name, user name etc.)
Definition at line 1420 of file qgsapplication.cpp.
|
signal |
Emitted whenever a custom global variable changes.
|
static |
Returns the application's data item provider registry, which keeps a list of data item providers that may add items to the browser tree.
Definition at line 1680 of file qgsapplication.cpp.
|
static |
Returns the path to default style (works as a starting point).
Definition at line 992 of file qgsapplication.cpp.
|
static |
Returns the path to the default theme directory.
Definition at line 462 of file qgsapplication.cpp.
|
static |
Returns the path to default themes folder from install (works as a starting point).
Definition at line 997 of file qgsapplication.cpp.
|
static |
Returns the path to the developers map file.
The developers map was created by using leaflet framework, it shows the doc/contributors.json file.
Definition at line 743 of file qgsapplication.cpp.
|
static |
Returns the path to the donors file.
Definition at line 753 of file qgsapplication.cpp.
|
static |
Returns whether this machine uses big or little endian.
Definition at line 1022 of file qgsapplication.cpp.
|
inlinestatic |
Swap the endianness of the specified value.
Definition at line 463 of file qgsapplication.h.
|
override |
Watch for QFileOpenEvent.
Definition at line 301 of file qgsapplication.cpp.
|
static |
deletes provider registry and map layer registry
Definition at line 1076 of file qgsapplication.cpp.
|
static |
Gets the registry of available field formatters.
Definition at line 1750 of file qgsapplication.cpp.
|
static |
Helper to get a theme cursor.
It will fall back to the default theme if the active theme does not have the required icon. Cursors are automatically scaled to look like a 16px cursor on 96dpi screens.
Definition at line 527 of file qgsapplication.cpp.
|
static |
Helper to get a theme icon.
It will fall back to the default theme if the active theme does not have the required icon.
Definition at line 497 of file qgsapplication.cpp.
|
static |
Helper to get a theme icon as a pixmap.
It will fall back to the default theme if the active theme does not have the required icon.
Definition at line 599 of file qgsapplication.cpp.
|
static |
Returns the application's GPS connection registry, used for managing GPS connections.
Definition at line 1720 of file qgsapplication.cpp.
|
static |
Returns the path to the translation directory.
Definition at line 768 of file qgsapplication.cpp.
|
static |
Returns path to the desired icon file.
First it tries to use the active theme path, then default theme path
Definition at line 486 of file qgsapplication.cpp.
|
static |
Returns the path to the icons image directory.
Definition at line 806 of file qgsapplication.cpp.
|
static |
This method initializes paths etc for QGIS.
Called by the ctor or call it manually when your app does not extend the QApplication class.
Definition at line 135 of file qgsapplication.cpp.
|
static |
loads providers
Definition at line 1027 of file qgsapplication.cpp.
|
static |
Returns the singleton instance of the QgsApplication.
Definition at line 296 of file qgsapplication.cpp.
|
inlinestatic |
Indicates whether running from build directory (not installed)
Definition at line 507 of file qgsapplication.h.
|
static |
Returns the application's layout item registry, used for layout item types.
Definition at line 1715 of file qgsapplication.cpp.
|
static |
Returns the paths to layout template directories.
Definition at line 857 of file qgsapplication.cpp.
|
static |
Returns the path with utility executables (help viewer, crssync, ...)
Definition at line 1012 of file qgsapplication.cpp.
|
static |
Returns the path containing qgis_core, qgis_gui, qgispython (and other) libraries.
Definition at line 1007 of file qgsapplication.cpp.
|
static |
Returns the path to the licence file.
Definition at line 763 of file qgsapplication.cpp.
|
static |
|
inlinestatic |
Gets maximum concurrent thread count.
Definition at line 546 of file qgsapplication.h.
|
static |
Returns the application's message log.
Definition at line 1730 of file qgsapplication.cpp.
|
static |
Returns the path to the metadata directory.
Definition at line 776 of file qgsapplication.cpp.
|
static |
Returns the application's network content registry used for fetching temporary files during QGIS session.
Definition at line 1705 of file qgsapplication.cpp.
|
override |
Catch exceptions when sending event to receiver.
Definition at line 329 of file qgsapplication.cpp.
|
static |
This string is used to represent the value NULL
throughout QGIS.
In general, when passing values around, prefer to use a null QVariant QVariant( field.type() )
or QVariant( QVariant::Int )
. This value should only be used in the final presentation step when showing values in a widget or sending it to a web browser.
Definition at line 1465 of file qgsapplication.cpp.
|
signal |
This string is used to represent the value NULL
throughout QGIS.
In general, when passing values around, prefer to use a null QVariant QVariant( field.type() )
or QVariant( QVariant::Int )
. This value should only be used in the final presentation step when showing values in a widget or sending it to a web browser.
|
static |
Returns a string name of the operating system QGIS is running on.
Definition at line 946 of file qgsapplication.cpp.
|
static |
Returns the application's page size registry, used for managing layout page sizes.
Definition at line 1740 of file qgsapplication.cpp.
|
static |
Returns the application's paint effect registry, used for managing paint effects.
Definition at line 1665 of file qgsapplication.cpp.
|
static |
Returns the common root path of all application data directories.
Definition at line 458 of file qgsapplication.cpp.
|
static |
Returns the QGIS platform name, e.g., "desktop" or "server".
Definition at line 961 of file qgsapplication.cpp.
|
static |
Returns the application's plugin layer registry, used for managing plugin layer types.
Definition at line 1725 of file qgsapplication.cpp.
|
static |
Returns the path to the application plugin directory.
Definition at line 454 of file qgsapplication.cpp.
|
static |
Returns the path to the application prefix directory.
Definition at line 438 of file qgsapplication.cpp.
|
signal |
|
static |
Returns the application's processing registry, used for managing processing providers, algorithms, and various parameters and outputs.
Definition at line 1735 of file qgsapplication.cpp.
|
static |
Returns the application runtime profiler.
Definition at line 367 of file qgsapplication.cpp.
|
static |
Returns registry of available project storage implementations.
Definition at line 1760 of file qgsapplication.cpp.
|
static |
Returns the path to the user authentication database file: qgis-auth.db.
Definition at line 796 of file qgsapplication.cpp.
|
static |
Returns the path to the master qgis.db file.
Definition at line 781 of file qgsapplication.cpp.
|
static |
Returns the path to the settings directory in user's home dir.
Definition at line 786 of file qgsapplication.cpp.
|
static |
Returns the path to the user qgis.db file.
Definition at line 791 of file qgsapplication.cpp.
|
static |
Returns the path where QML components are installed for QGIS Quick library.
Returns empty string when QGIS is built without Quick support
Definition at line 1017 of file qgsapplication.cpp.
|
static |
Returns the application's raster renderer registry, used for managing raster layer renderers.
Definition at line 1675 of file qgsapplication.cpp.
|
static |
Register OGR drivers ensuring this only happens once.
This is a workaround for an issue with older gdal versions that caused duplicate driver name entries to appear in the list of registered drivers when QgsApplication::registerOgrDrivers was called multiple times.
Definition at line 1232 of file qgsapplication.cpp.
|
static |
Converts path relative to target to an absolute path.
Definition at line 1305 of file qgsapplication.cpp.
|
static |
Returns registry of available 3D renderers.
Definition at line 1755 of file qgsapplication.cpp.
|
static |
Returns the application's renderer registry, used for managing vector layer renderers.
Definition at line 1670 of file qgsapplication.cpp.
|
static |
Returns a standard css style sheet for reports.
Typically you will use this method by doing: QString myStyle = QgsApplication::reportStyleSheet(); textBrowserReport->document()->setDefaultStyleSheet(myStyle);
Definition at line 1131 of file qgsapplication.cpp.
|
static |
Calculate the application pkg path.
Definition at line 620 of file qgsapplication.cpp.
|
static |
Sets the GDAL_SKIP environment variable to exclude the specified driver and then calls GDALDriverManager::AutoSkipDrivers() to unregister it.
The driver name should be the short format of the Gdal driver name e.g. GTIFF.
Definition at line 1365 of file qgsapplication.cpp.
|
static |
Returns the path to the server resources directory.
Definition at line 1002 of file qgsapplication.cpp.
|
static |
Alters authentication data base directory path - used by 3rd party apps.
Definition at line 429 of file qgsapplication.cpp.
|
static |
Set a single custom expression variable.
Definition at line 1454 of file qgsapplication.cpp.
|
static |
Custom expression variables for this application.
Do not include generated variables (like system name, user name etc.)
Definition at line 1439 of file qgsapplication.cpp.
|
static |
Alters default svg paths - used by 3rd party apps.
Definition at line 424 of file qgsapplication.cpp.
|
static |
Sets the FileOpen event receiver.
Definition at line 372 of file qgsapplication.cpp.
|
static |
Set maximum concurrent thread count.
Definition at line 1634 of file qgsapplication.cpp.
|
static |
This string is used to represent the value NULL
throughout QGIS.
In general, when passing values around, prefer to use a null QVariant QVariant( field.type() )
or QVariant( QVariant::Int )
. This value should only be used in the final presentation step when showing values in a widget or sending it to a web browser.
Definition at line 1475 of file qgsapplication.cpp.
|
static |
Alters pkg data path - used by 3rd party apps.
Definition at line 415 of file qgsapplication.cpp.
|
static |
Alters plugin path - used by 3rd party apps.
Definition at line 410 of file qgsapplication.cpp.
|
static |
Alters prefix path - used by 3rd party apps.
Definition at line 389 of file qgsapplication.cpp.
|
static |
Set the active theme to the specified theme.
The theme name should be a single word e.g. 'default','classic'. The theme search path usually will be pkgDataPath + "/themes/" + themName + "/" but plugin writers etc can use themeName() as a basis for searching for resources in their own datastores e.g. a Qt4 resource bundle.
Definition at line 615 of file qgsapplication.cpp.
|
static |
Set the current UI theme used to style the interface.
Use uiThemes() to find valid themes to use. Variables found in variables.qss will be added to the stylesheet on load.
themeName | The name of the theme. |
Definition at line 655 of file qgsapplication.cpp.
|
static |
Returns the short name regular expression for line edit validator.
Definition at line 872 of file qgsapplication.cpp.
|
static |
Convenience function to get a summary of the paths used in this application instance useful for debugging mainly.
Definition at line 1104 of file qgsapplication.cpp.
|
static |
Sets the GDAL_SKIP environment variable to include the specified driver and then calls GDALDriverManager::AutoSkipDrivers() to unregister it.
The driver name should be the short format of the Gdal driver name e.g. GTIFF.
Definition at line 1355 of file qgsapplication.cpp.
|
inlinestatic |
Returns the list of gdal drivers that should be skipped (based on GDAL_SKIP environment variable)
Definition at line 534 of file qgsapplication.h.
|
static |
Returns the path to the splash screen image directory.
Definition at line 801 of file qgsapplication.cpp.
|
static |
Returns the path to the sponsors file.
Definition at line 748 of file qgsapplication.cpp.
|
static |
Returns the path to the srs.db file.
Definition at line 811 of file qgsapplication.cpp.
|
static |
Returns the application's SVG cache, used for caching SVG images and handling parameter replacement within SVG files.
Definition at line 1700 of file qgsapplication.cpp.
|
static |
Returns the paths to svg directories.
Definition at line 834 of file qgsapplication.cpp.
|
static |
Returns the application's symbol layer registry, used for managing symbol layers.
Definition at line 1710 of file qgsapplication.cpp.
|
inlinestatic |
Returns the system environment variables passed to application.
Definition at line 296 of file qgsapplication.h.
|
static |
Returns the application's task manager, used for managing application wide background task handling.
Definition at line 1655 of file qgsapplication.cpp.
|
static |
Set the active theme to the specified theme.
The theme name should be a single word e.g. 'default','classic'. The theme search path usually will be pkgDataPath + "/themes/" + themName + "/" but plugin writers etc can use this method as a basis for searching for resources in their own datastores e.g. a Qt4 resource bundle.
Definition at line 650 of file qgsapplication.cpp.
|
static |
Returns the path to the sponsors file.
Definition at line 758 of file qgsapplication.cpp.
|
static |
All themes found in ~/.qgis3/themes folder.
The path is to the root folder for the theme
Definition at line 711 of file qgsapplication.cpp.
|
static |
Returns the user's operating system login account full display name.
Definition at line 912 of file qgsapplication.cpp.
|
static |
Returns the user's operating system login account name.
Definition at line 877 of file qgsapplication.cpp.
|
static |
Returns the path to user's style.
Definition at line 867 of file qgsapplication.cpp.
|
static |
Returns the path to user's themes folder.
Definition at line 987 of file qgsapplication.cpp.
|
static |
Definition at line 123 of file qgsapplication.h.
|
static |
Definition at line 122 of file qgsapplication.h.
|
static |
Definition at line 121 of file qgsapplication.h.