Class: QgsEncodingFileDialog

class qgis.gui.QgsEncodingFileDialog(parent: QWidget = None, caption: str = '', directory: str = '', filter: str = '', encoding: str = '')

Bases: PyQt5.QtWidgets.QFileDialog

Constructor for QgsEncodingFileDialog

A file dialog which lets the user select the preferred encoding type for a data provider.

Parameters
  • parent (QWidget = None) –

  • caption (str = '') –

  • directory (str = '') –

  • filter (str = '') –

  • encoding

accept(self)
actionEvent(self, QActionEvent)
addCancelAll(self)

Adds a ‘Cancel All’ button for the user to click

cancelAll(self) → bool

Returns True if the user clicked ‘Cancel All’

Return type

bool

changeEvent(self, QEvent)
childEvent(self, QChildEvent)
closeEvent(self, QCloseEvent)
connectNotify(self, QMetaMethod)
contextMenuEvent(self, QContextMenuEvent)
create(self, window: sip.voidptr = 0, initializeWindow: bool = True, destroyOldWindow: bool = True)
customEvent(self, QEvent)
destroy(self, destroyWindow: bool = True, destroySubWindows: bool = True)
disconnectNotify(self, QMetaMethod)
done(self, int)
dragEnterEvent(self, QDragEnterEvent)
dragLeaveEvent(self, QDragLeaveEvent)
dragMoveEvent(self, QDragMoveEvent)
dropEvent(self, QDropEvent)
encoding(self) → str

Returns a string describing the chosen encoding

Return type

str

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
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], sip.voidptr) → Tuple[bool, int]
paintEvent(self, QPaintEvent)
pbnCancelAll_clicked(self)
receivers(self, PYQT_SIGNAL) → int
resizeEvent(self, QResizeEvent)
saveUsedEncoding(self)
sender(self) → QObject
senderSignalIndex(self) → int
sharedPainter(self) → QPainter
showEvent(self, QShowEvent)
tabletEvent(self, QTabletEvent)
timerEvent(self, QTimerEvent)
updateMicroFocus(self)
wheelEvent(self, QWheelEvent)