QGIS API Documentation 3.39.0-Master (bca3cdb6021)
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
QgsGdalGuiUtils Class Reference

Utility functions for working with GDAL in GUI classes. More...

#include <qgsgdalguiutils.h>

Static Public Member Functions

static QString createDatabaseURI (const QString &connectionType, const QString &host, const QString &database, QString port, const QString &configId, QString username, QString password, bool expandAuthConfig=false)
 Create database uri from connection parameters.
 
static QString createProtocolURI (const QString &type, const QString &url, const QString &configId, const QString &username, const QString &password, bool expandAuthConfig=false)
 Create protocol uri from connection parameters.
 
static QWidget * createWidgetForOption (const QgsGdalOption &option, QWidget *parent=nullptr, bool includeDefaultChoices=false)
 Creates a new widget for configuration a GDAL option.
 

Detailed Description

Utility functions for working with GDAL in GUI classes.

Note
not available in Python bindings
Since
QGIS 3.40

Definition at line 37 of file qgsgdalguiutils.h.

Member Function Documentation

◆ createDatabaseURI()

QString QgsGdalGuiUtils::createDatabaseURI ( const QString &  connectionType,
const QString &  host,
const QString &  database,
QString  port,
const QString &  configId,
QString  username,
QString  password,
bool  expandAuthConfig = false 
)
static

Create database uri from connection parameters.

Note
not available in python bindings

Definition at line 29 of file qgsgdalguiutils.cpp.

◆ createProtocolURI()

QString QgsGdalGuiUtils::createProtocolURI ( const QString &  type,
const QString &  url,
const QString &  configId,
const QString &  username,
const QString &  password,
bool  expandAuthConfig = false 
)
static

Create protocol uri from connection parameters.

Note
not available in python bindings

Definition at line 225 of file qgsgdalguiutils.cpp.

◆ createWidgetForOption()

QWidget * QgsGdalGuiUtils::createWidgetForOption ( const QgsGdalOption option,
QWidget *  parent = nullptr,
bool  includeDefaultChoices = false 
)
static

Creates a new widget for configuration a GDAL option.

If includeDefaultChoices is true then the widget will include an option for the default value.

Definition at line 292 of file qgsgdalguiutils.cpp.


The documentation for this class was generated from the following files: