Class: QgsColorTextWidget

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

Bases: QgsColorWidget

Construct a new color line edit widget.

Parameters

parent (QWidget = None) – parent QWidget for the widget

A line edit widget which displays colors as text and accepts string representations of colors.

class ColorTextFormat

Bases: int

baseClass

alias of QgsColorTextWidget

HexRgb = 0
HexRgbA = 1
Rgb = 2
Rgba = 3
actionEvent()
alterColor()
changeEvent()
childEvent()
closeEvent()
componentRange()
componentValue()
connectNotify()
contextMenuEvent()
create()
customEvent()
destroy()
disconnectNotify()
dragEnterEvent()
dragLeaveEvent()
dragMoveEvent()
dropEvent()
enterEvent()
event()
focusInEvent()
focusNextChild()
focusNextPrevChild()
focusOutEvent()
focusPreviousChild()
hideEvent()
hue()
initPainter()
inputMethodEvent()
isSignalConnected()
keyPressEvent()
keyReleaseEvent()
leaveEvent()
metric()
mouseDoubleClickEvent()
mouseMoveEvent()
mousePressEvent()
mouseReleaseEvent()
moveEvent()
nativeEvent()
paintEvent()
receivers()
resizeEvent(self, event: QResizeEvent)
Parameters

event (QResizeEvent) –

sender()
senderSignalIndex()
setColor(self, color: Union[QColor, Qt.GlobalColor, QGradient], emitSignals: bool = False)
Parameters
  • color (Union[QColor) –

  • emitSignals (bool = False) –

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