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()
actionEvent()
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()
childEvent()
closeEvent()
connectNotify()
contextMenuEvent()
create()
customEvent()
destroy()
disconnectNotify()
done()
dragEnterEvent()
dragLeaveEvent()
dragMoveEvent()
dropEvent()
encoding(self) → str

Returns a string describing the chosen encoding

Return type

str

enterEvent()
event()
eventFilter()
focusInEvent()
focusNextChild()
focusNextPrevChild()
focusOutEvent()
focusPreviousChild()
hideEvent()
initPainter()
inputMethodEvent()
isSignalConnected()
keyPressEvent()
keyReleaseEvent()
leaveEvent()
metric()
mouseDoubleClickEvent()
mouseMoveEvent()
mousePressEvent()
mouseReleaseEvent()
moveEvent()
nativeEvent()
paintEvent()
pbnCancelAll_clicked(self)
receivers()
resizeEvent()
saveUsedEncoding(self)
sender()
senderSignalIndex()
sharedPainter()
showEvent()
tabletEvent()
timerEvent()
updateMicroFocus()
wheelEvent()