|
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 QgsAnnotationItemRegistry * | annotationItemRegistry () |
| Returns the application's annotation item registry, used for annotation item types. 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 QgsBookmarkManager * | bookmarkManager () |
| Returns the application's bookmark manager, used for storing installation-wide bookmarks. 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 QgsCalloutRegistry * | calloutRegistry () |
| Returns the application's callout registry, used for managing callout types. More...
|
|
static QgsClassificationMethodRegistry * | classificationMethodRegistry () |
| Returns the application's classification methods registry, used in graduated renderer. More...
|
|
static QgsColorSchemeRegistry * | colorSchemeRegistry () |
| Returns the application's color scheme registry, used for managing color schemes. More...
|
|
static QgsConnectionRegistry * | connectionRegistry () |
| Returns the application's connection registry, used for managing saved data provider connections. More...
|
|
static QString | contributorsFilePath () |
| Returns the path to the contributors file. More...
|
|
static QgsCoordinateReferenceSystemRegistry * | coordinateReferenceSystemRegistry () |
| Returns the application's coordinate reference system (CRS) registry, which handles known CRS definitions (including user-defined CRSes). 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 QgsDatabaseQueryLog * | databaseQueryLog () |
| Returns the database query log. 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 QgsStyleModel * | defaultStyleModel () |
| Returns a shared QgsStyleModel containing the default style library (see QgsStyle::defaultStyle()). 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 QStringList | deferredSkippedGdalDrivers () |
| Returns the list of gdal drivers that have been disabled in the current session, and thus, for safety, should not be disabled right now, but at the next application restart. 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...
|
|
static void | exitQgis () |
| deletes provider registry and map layer registry More...
|
|
static QgsExternalStorageRegistry * | externalStorageRegistry () |
| Returns registry of available external storage implementations. More...
|
|
static QgsFieldFormatterRegistry * | fieldFormatterRegistry () |
| Gets the registry of available field formatters. More...
|
|
static QgsFontManager * | fontManager () |
| Returns the application font manager, which manages available fonts and font installation for the QGIS instance. More...
|
|
static QCursor | getThemeCursor (Cursor cursor) |
| Helper to get a theme cursor. More...
|
|
static QIcon | getThemeIcon (const QString &name, const QColor &fillColor=QColor(), const QColor &strokeColor=QColor()) |
| Helper to get a theme icon. More...
|
|
static QPixmap | getThemePixmap (const QString &name, const QColor &foreColor=QColor(), const QColor &backColor=QColor(), int size=16) |
| Helper to get a theme icon as a pixmap. More...
|
|
static QgsBabelFormatRegistry * | gpsBabelFormatRegistry () |
| Returns the application's GPSBabel format registry, used for managing GPSBabel formats. 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 QgsImageCache * | imageCache () |
| Returns the application's image cache, used for caching resampled versions of raster images. 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 QgsLayerMetadataProviderRegistry * | layerMetadataProviderRegistry () |
| Returns registry of available layer metadata provider implementations. 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 QgsLocalizedDataPathRegistry * | localizedDataPathRegistry () |
| Returns the registry of data repositories These are used as paths for basemaps, logos, etc. 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 QgsNumericFormatRegistry * | numericFormatRegistry () |
| Gets the registry of available numeric formats. 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", "server", "qgis_process" or "external" (for external CLI scripts). 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 QgsPointCloudRendererRegistry * | pointCloudRendererRegistry () |
| Returns the application's point cloud renderer registry, used for managing point cloud layer 2D renderers. 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 QgsRecentStyleHandler * | recentStyleHandler () |
| Returns the handler for recently used style items. More...
|
|
static void | registerGdalDriversFromSettings () |
| Register gdal drivers, excluding the ones mentioned in "gdal/skipList" setting. 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 (QgsApplication::StyleSheetType styleSheetType=QgsApplication::StyleSheetType::Qt) |
| Returns a css style sheet for reports, the styleSheetType argument determines what type of stylesheet is supported by the widget. 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 QgsScaleBarRendererRegistry * | scaleBarRendererRegistry () |
| Gets the registry of available scalebar renderers. More...
|
|
static int | scaleIconSize (int standardSize, bool applyDevicePixelRatio=false) |
| Scales an icon size to compensate for display pixel density, making the icon size hi-dpi friendly, whilst still resulting in pixel-perfect sizes for low-dpi displays. 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 | setLocale (const QLocale &locale) |
| Sets the QGIS locale - used mainly by 3rd party apps and tests. 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 | setSkippedGdalDrivers (const QStringList &skippedGdalDrivers, const QStringList &deferredSkippedGdalDrivers) |
| Sets the list of gdal drivers that should be disabled (skippedGdalDrivers), but excludes for now the ones defines in deferredSkippedGdalDrivers. More...
|
|
static void | setSvgPaths (const QStringList &svgPaths) |
| Sets the paths to svg directories and invalidates the svg path list cache. More...
|
|
static void | setThemeName (const QString &themeName) |
| Set the active theme to the specified theme. More...
|
|
static QgsSettingsRegistryCore * | settingsRegistryCore () |
| Returns the application's settings registry, used for managing application settings. More...
|
|
static void | setTranslation (const QString &translation) |
| Set translation locale code. More...
|
|
static void | setUITheme (const QString &themeName) |
| Set the current UI theme used to style the interface. More...
|
|
static QRegularExpression | shortNameRegularExpression () |
| 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 QgsSourceCache * | sourceCache () |
| Returns the application's source cache, used for caching embedded and remote source strings as local files. 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 Qgs3DSymbolRegistry * | symbol3DRegistry () |
| Returns registry of available 3D symbols. 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 int | systemMemorySizeMb () |
| Returns the size of the system memory (RAM) in megabytes. 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 QgsTileDownloadManager * | tileDownloadManager () |
| Returns the application's tile download manager, used for download of map tiles when rendering. 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 QgsValidityCheckRegistry * | validityCheckRegistry () |
| Returns the application's validity check registry, used for managing validity checks. More...
|
|