Class: QgsColorBox¶
-
class
qgis.gui.
QgsColorBox
(parent: QWidget = None, component: QgsColorWidget.ColorComponent = QgsColorWidget.Value)¶ Bases:
QgsColorWidget
Construct a new color box widget.
- Parameters
parent (QWidget = None) – parent QWidget for the widget
component (QgsColorWidget.ColorComponent = QgsColorWidget.Value) – 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.
Methods
- param event
- param event
- param event
- param event
- param color
- param component
- rtype
QSize
-
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)¶ - Parameters
event (QMouseEvent) –
-
mousePressEvent
(self, event: QMouseEvent)¶ - Parameters
event (QMouseEvent) –
-
mouseReleaseEvent
()¶
-
moveEvent
()¶
-
nativeEvent
()¶
-
paintEvent
(self, event: QPaintEvent)¶ - Parameters
event (QPaintEvent) –
-
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) –
-
setComponent
(self, component: QgsColorWidget.ColorComponent)¶ - Parameters
component (QgsColorWidget.ColorComponent) –
-
showEvent
()¶
-
sizeHint
(self) → QSize¶ - Return type
QSize
-
tabletEvent
()¶
-
timerEvent
()¶
-
transparentBackground
()¶
-
updateMicroFocus
()¶
-
wheelEvent
()¶