Subgroup: Color

Class: QgsColorBox

class qgis.gui.QgsColorBox(parent: QWidget = None, component: QgsColorWidget.ColorComponent = QgsColorWidget.Value)

Bases: qgis._gui.QgsColorWidget

Construct a new color box widget.

Parameters:
  • parent – parent QWidget for the widget
  • component – constant color component for the widget. The color components

which vary along the horizontal and vertical axis are automatically assigned based on this constant color component.

A color box widget. This widget consists of a two dimensional rectangle filled with color variations, where a different color component varies along both the horizontal and vertical axis.

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(self, event: QMouseEvent)
mousePressEvent(self, event: QMouseEvent)
mouseReleaseEvent()
moveEvent()
nativeEvent()
paintEvent(self, event: QPaintEvent)
receivers()
resizeEvent(self, event: QResizeEvent)
sender()
senderSignalIndex()
setColor(self, color: Union[QColor, Qt.GlobalColor, QGradient], emitSignals: bool = False)
setComponent(self, component: QgsColorWidget.ColorComponent)
sharedPainter()
showEvent()
sizeHint(self) → QSize
tabletEvent()
timerEvent()
transparentBackground()
updateMicroFocus()
wheelEvent()