Class: QgsNumericFormatWidget

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

Bases: QgsPanelWidget

Constructor for QgsNumericFormatWidget.

Base class for widgets which allow control over the properties of QgsNumericFormat subclasses

New in version 3.12.

Parameters

parent

actionEvent()
changeEvent()
changed

Emitted whenever the configuration of the numeric format is changed. [signal]

childEvent()
closeEvent()
connectNotify()
contextMenuEvent()
create()
customEvent()
destroy()
disconnectNotify()
dragEnterEvent()
dragLeaveEvent()
dragMoveEvent()
dropEvent()
enterEvent()
event()
focusInEvent()
focusNextChild()
focusNextPrevChild()
focusOutEvent()
focusPreviousChild()
format(self) → QgsNumericFormat

Returns the format defined by the current settings in the widget.

Ownership of the returned object is transferred to the caller

See also

setFormat()

Return type

QgsNumericFormat

hideEvent()
initPainter()
inputMethodEvent()
isSignalConnected()
keyPressEvent()
keyReleaseEvent()
leaveEvent()
metric()
mouseDoubleClickEvent()
mouseMoveEvent()
mousePressEvent()
mouseReleaseEvent()
moveEvent()
nativeEvent()
paintEvent()
receivers()
resizeEvent()
sender()
senderSignalIndex()
setFormat(self, format: QgsNumericFormat)

Sets the format to show in the widget. Ownership is not transferred.

See also

format()

Parameters

format (QgsNumericFormat) –

sharedPainter()
showEvent()
tabletEvent()
timerEvent()
updateMicroFocus()
wheelEvent()