Class: QgsNewDatabaseTableNameDialog¶
- class qgis.gui.QgsNewDatabaseTableNameDialog¶
Bases:
PyQt5.QtWidgets.QDialog
QgsNewDatabaseTableNameDialog
is a dialog which allows selection of a DB schema and a new table name.The table name is validated for uniqueness and the selected data item provider, schema and table names can be retrieved with getters.
Warning
The data provider that originated the data item provider must support the connections API
New in version 3.14.
QgsNewDatabaseTableNameDialog(browserModel:
QgsBrowserGuiModel
= None, providersFilter: Iterable[str] = [], parent: QWidget = None) Constructs a new QgsNewDatabaseTableNameDialog- Parameters:
browserModel – an existing browser model (typically from app), if NULL an instance will be created
providersFilter – optional white list of data provider keys that should be shown in the widget, if not specified all providers data items with database capabilities will be shown
parent –
optional parent for this widget
Methods
Returns the currently selected data item provider key
Returns
True
if the widget contains a valid new table nameReturns the currently selected schema or file path (in case of filesystem-based DBs like spatialite or GPKG) for the new table
Returns the current name of the new table
Returns the (possibly blank) string representation of the new table data source URI.
Returns the validation error or an empty string is the widget status is valid
- actionEvent(self, QActionEvent)¶
- changeEvent(self, QEvent)¶
- childEvent(self, QChildEvent)¶
- closeEvent(self, QCloseEvent)¶
- connectNotify(self, QMetaMethod)¶
- contextMenuEvent(self, QContextMenuEvent)¶
- create(self, window: PyQt5.sip.voidptr = 0, initializeWindow: bool = True, destroyOldWindow: bool = True)¶
- customEvent(self, QEvent)¶
- dataProviderKey(self) str ¶
Returns the currently selected data item provider key
- Return type:
str
- destroy(self, destroyWindow: bool = True, destroySubWindows: bool = True)¶
- disconnectNotify(self, QMetaMethod)¶
- dragEnterEvent(self, QDragEnterEvent)¶
- dragLeaveEvent(self, QDragLeaveEvent)¶
- dragMoveEvent(self, QDragMoveEvent)¶
- dropEvent(self, QDropEvent)¶
- enterEvent(self, QEvent)¶
- event(self, QEvent) bool ¶
- eventFilter(self, QObject, QEvent) bool ¶
- focusInEvent(self, QFocusEvent)¶
- focusNextChild(self) bool ¶
- focusNextPrevChild(self, bool) bool ¶
- focusOutEvent(self, QFocusEvent)¶
- focusPreviousChild(self) bool ¶
- hideEvent(self, QHideEvent)¶
- initPainter(self, QPainter)¶
- inputMethodEvent(self, QInputMethodEvent)¶
- isSignalConnected(self, QMetaMethod) bool ¶
- isValid(self) bool ¶
Returns
True
if the widget contains a valid new table name- Return type:
bool
- keyPressEvent(self, QKeyEvent)¶
- keyReleaseEvent(self, QKeyEvent)¶
- leaveEvent(self, QEvent)¶
- metric(self, QPaintDevice.PaintDeviceMetric) int ¶
- mouseDoubleClickEvent(self, QMouseEvent)¶
- mouseMoveEvent(self, QMouseEvent)¶
- mousePressEvent(self, QMouseEvent)¶
- mouseReleaseEvent(self, QMouseEvent)¶
- moveEvent(self, QMoveEvent)¶
- nativeEvent(self, Union[QByteArray, bytes, bytearray], PyQt5.sip.voidptr) Tuple[bool, int] ¶
- paintEvent(self, QPaintEvent)¶
- receivers(self, PYQT_SIGNAL) int ¶
- resizeEvent(self, QResizeEvent)¶
- schema(self) str ¶
Returns the currently selected schema or file path (in case of filesystem-based DBs like spatialite or GPKG) for the new table
- Return type:
str
- sender(self) QObject ¶
- senderSignalIndex(self) int ¶
- showEvent(self, QShowEvent)¶
- table(self) str ¶
Returns the current name of the new table
- Return type:
str
- tabletEvent(self, QTabletEvent)¶
- timerEvent(self, QTimerEvent)¶
- updateMicroFocus(self)¶
- uri(self) str ¶
Returns the (possibly blank) string representation of the new table data source URI. The URI might be invalid in case the widget is not in a valid state.
- Return type:
str
- validationError(self) str ¶
Returns the validation error or an empty string is the widget status is valid
- Return type:
str
- wheelEvent(self, QWheelEvent)¶