QGIS API Documentation  3.18.1-Zürich (202f1bf7e5)
Signals | Public Member Functions | List of all members
QgsProviderSourceWidget Class Referenceabstract

Base class for widgets which allow customization of a provider's source URI. More...

#include <qgsprovidersourcewidget.h>

Inheritance diagram for QgsProviderSourceWidget:
Inheritance graph
[legend]

Signals

void validChanged (bool isValid)
 Emitted whenever the validation status of the widget changes. More...
 

Public Member Functions

 QgsProviderSourceWidget (QWidget *parent=nullptr)
 Constructor for QgsProviderSourceWidget with the specified parent widget. More...
 
virtual void setSourceUri (const QString &uri)=0
 Sets the source uri to show in the widget. More...
 
virtual QString sourceUri () const =0
 Returns the source URI as currently defined by the widget. More...
 

Detailed Description

Base class for widgets which allow customization of a provider's source URI.

Since
QGIS 3.18

Definition at line 30 of file qgsprovidersourcewidget.h.

Constructor & Destructor Documentation

◆ QgsProviderSourceWidget()

QgsProviderSourceWidget::QgsProviderSourceWidget ( QWidget *  parent = nullptr)

Constructor for QgsProviderSourceWidget with the specified parent widget.

Definition at line 21 of file qgsprovidersourcewidget.cpp.

Member Function Documentation

◆ setSourceUri()

virtual void QgsProviderSourceWidget::setSourceUri ( const QString &  uri)
pure virtual

Sets the source uri to show in the widget.

See also
sourceUri()

◆ sourceUri()

virtual QString QgsProviderSourceWidget::sourceUri ( ) const
pure virtual

Returns the source URI as currently defined by the widget.

See also
setSourceUri()

◆ validChanged

void QgsProviderSourceWidget::validChanged ( bool  isValid)
signal

Emitted whenever the validation status of the widget changes.

If isValid is false then the widget is not valid, and any dialog using the widget should be prevented from being accepted.


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