Class: QgsCodeEditorSQL

class qgis.gui.QgsCodeEditorSQL(parent: QWidget = None)

Bases: QgsCodeEditor

Constructor for QgsCodeEditorSQL

A SQL editor based on QScintilla2. Adds syntax highlighting and code autocompletion.

Note

may not be available in Python bindings, depending on platform support

New in version 2.6.

Parameters

parent

actionEvent()
canInsertFromMimeData()
changeEvent()
childEvent()
closeEvent()
connectNotify()
contextMenuEvent()
create()
customEvent()
destroy()
disconnectNotify()
dragEnterEvent()
dragLeaveEvent()
dragMoveEvent()
drawFrame()
dropEvent()
enterEvent()
event()
eventFilter()
focusInEvent()
focusNextChild()
focusNextPrevChild()
focusOutEvent()
focusPreviousChild()
fromMimeData()
getMonospaceFont()
hideEvent()
initPainter()
initStyleOption()
inputMethodEvent()
inputMethodQuery()
isFixedPitch()
isSignalConnected()
keyPressEvent()
keyReleaseEvent()
leaveEvent()
metric()
mouseDoubleClickEvent()
mouseMoveEvent()
mousePressEvent()
mouseReleaseEvent()
moveEvent()
nativeEvent()
paintEvent()
receivers()
resizeEvent()
scrollContentsBy()
sender()
senderSignalIndex()
setFields(self, fields: QgsFields)

Set field names to be added to the lexer API.

New in version 3.14.

Parameters

fields (QgsFields) –

setViewportMargins()
sharedPainter()
showEvent()
tabletEvent()
timerEvent()
toMimeData()
updateMicroFocus()
viewportEvent()
viewportMargins()
viewportSizeHint()
wheelEvent()