Class: CharacterWidget

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

Bases: PyQt5.QtWidgets.QWidget

Constructor for CharacterWidget.

A widget for displaying characters available in a preset font, and allowing users to select an individual character.

Enums

Methods

actionEvent

changeEvent

character

Returns the currently selected character in the widget.

childEvent

clearCharacter

Clears the currently selected character in the widget.

closeEvent

columns

Returns the number of columns of characters shown in the widget.

connectNotify

contextMenuEvent

create

customEvent

destroy

disconnectNotify

dragEnterEvent

dragLeaveEvent

dragMoveEvent

dropEvent

enterEvent

event

focusInEvent

focusNextChild

focusNextPrevChild

focusOutEvent

focusPreviousChild

font

Returns the font shown in the widget

hideEvent

initPainter

inputMethodEvent

isSignalConnected

keyPressEvent

keyReleaseEvent

leaveEvent

metric

mouseDoubleClickEvent

mouseMoveEvent

mousePressEvent

mouseReleaseEvent

moveEvent

nativeEvent

paintEvent

receivers

resizeEvent

sender

senderSignalIndex

setCharacter

Sets the currently selected character in the widget.

setColumns

Sets the number of columns of characters to show in the widget.

setFont

Sets the font to show in the widget.

setFontSize

Sets the font size (in points) to render in the widget.

setFontStyle

Sets the font style to show in the widget.

sharedPainter

showEvent

sizeHint

squareSize

Returns the size (in pixels) of the square used to render each character preview.

tabletEvent

timerEvent

updateFontMerging

updateMicroFocus

wheelEvent

Signals

characterSelected

Emitted when a character is selected in the widget.

Attributes

actionEvent()
changeEvent()
character(self) → str

Returns the currently selected character in the widget.

See also

setCharacter()

New in version 3.0.

characterSelected

Emitted when a character is selected in the widget. [signal]

childEvent()
clearCharacter(self)

Clears the currently selected character in the widget.

See also

character()

See also

setCharacter()

closeEvent()
columns(self) → int

Returns the number of columns of characters shown in the widget.

connectNotify()
contextMenuEvent()
create()
customEvent()
destroy()
disconnectNotify()
dragEnterEvent()
dragLeaveEvent()
dragMoveEvent()
dropEvent()
enterEvent()
event()
focusInEvent()
focusNextChild()
focusNextPrevChild()
focusOutEvent()
focusPreviousChild()
font(self) → QFont

Returns the font shown in the widget

See also

setFont()

New in version 3.0.

hideEvent()
initPainter()
inputMethodEvent()
isSignalConnected()
keyPressEvent(self, event: QKeyEvent)
keyReleaseEvent()
leaveEvent()
metric()
mouseDoubleClickEvent()
mouseMoveEvent(self, event: QMouseEvent)
mousePressEvent(self, event: QMouseEvent)
mouseReleaseEvent()
moveEvent()
nativeEvent()
paintEvent(self, event: QPaintEvent)
receivers()
resizeEvent(self, event: QResizeEvent)
sender()
senderSignalIndex()
setCharacter(self, character: str)

Sets the currently selected character in the widget.

See also

character()

setColumns(self, columns: int)

Sets the number of columns of characters to show in the widget.

New in version 3.0.

setFont(self, font: QFont)

Sets the font to show in the widget.

See also

font()

New in version 3.0.

setFontSize(self, fontSize: float)

Sets the font size (in points) to render in the widget.

New in version 3.0.

setFontStyle(self, fontStyle: str)

Sets the font style to show in the widget.

New in version 3.0.

sharedPainter()
showEvent()
sizeHint(self) → QSize
squareSize(self) → int

Returns the size (in pixels) of the square used to render each character preview.

tabletEvent()
timerEvent()
updateFontMerging(self, enable: bool)
updateMicroFocus()
wheelEvent()