QGIS API Documentation 3.41.0-Master (fda2aa46e9a)
|
The QgsAbstractDbTableModel class is a pure virtual model class for results in a database source widget selector. More...
#include <qgsabstractdbtablemodel.h>
Public Member Functions | |
QgsAbstractDbTableModel (QObject *parent=nullptr) | |
Constructor. | |
virtual QStringList | columns () const =0 |
Returns the list of columns in the table. | |
virtual int | defaultSearchColumn () const =0 |
Returns the index of the column used by default to filter the results (probably the table name column if it exists) | |
virtual bool | searchableColumn (int column) const |
Returns if the column should be searchable at the given index. | |
virtual void | setSql (const QModelIndex &index, const QString &sql)=0 |
Sets an sql statement that belongs to a cell specified by a model index. | |
The QgsAbstractDbTableModel class is a pure virtual model class for results in a database source widget selector.
Definition at line 28 of file qgsabstractdbtablemodel.h.
|
inlineexplicit |
Constructor.
Definition at line 33 of file qgsabstractdbtablemodel.h.
|
pure virtual |
Returns the list of columns in the table.
|
pure virtual |
Returns the index of the column used by default to filter the results (probably the table name column if it exists)
|
inlinevirtual |
Returns if the column should be searchable at the given index.
Definition at line 44 of file qgsabstractdbtablemodel.h.
|
pure virtual |
Sets an sql statement that belongs to a cell specified by a model index.