Class: QgsGradientColorRampDialog¶
-
class
qgis.gui.
QgsGradientColorRampDialog
(ramp: QgsGradientColorRamp, parent: QWidget = None)¶ Bases:
PyQt5.QtWidgets.QDialog
Constructor for QgsGradientColorRampDialog.
- Parameters
ramp – initial ramp to show in dialog
parent – parent widget
A dialog which allows users to modify the properties of a QgsGradientColorRamp.
New in version 3.0: Enums
Methods
Returns a color ramp representing the current settings from the dialog.
Sets the start color for the gradient ramp.
Sets the end color for the gradient ramp.
Sets the color ramp to show in the dialog.
Signals
Emitted when the dialog settings change [signal]
Attributes
-
actionEvent
()¶
-
changeEvent
()¶
-
changed
¶ Emitted when the dialog settings change [signal]
-
childEvent
()¶
-
closeEvent
()¶
-
connectNotify
()¶
-
contextMenuEvent
()¶
-
create
()¶
-
customEvent
()¶
-
destroy
()¶
-
disconnectNotify
()¶
-
dragEnterEvent
()¶
-
dragLeaveEvent
()¶
-
dragMoveEvent
()¶
-
dropEvent
()¶
-
enterEvent
()¶
-
event
()¶
-
eventFilter
()¶
-
focusInEvent
()¶
-
focusNextChild
()¶
-
focusNextPrevChild
()¶
-
focusOutEvent
()¶
-
focusPreviousChild
()¶
-
hideEvent
()¶
-
initPainter
()¶
-
inputMethodEvent
()¶
-
isSignalConnected
()¶
-
keyPressEvent
()¶
-
keyReleaseEvent
()¶
-
leaveEvent
()¶
-
metric
()¶
-
mouseDoubleClickEvent
()¶
-
mouseMoveEvent
()¶
-
mousePressEvent
()¶
-
mouseReleaseEvent
()¶
-
moveEvent
()¶
-
nativeEvent
()¶
-
paintEvent
()¶
-
ramp
(self) → QgsGradientColorRamp¶ Returns a color ramp representing the current settings from the dialog.
See also
-
receivers
()¶
-
resizeEvent
()¶
-
sender
()¶
-
senderSignalIndex
()¶
-
setColor1
(self, color: Union[QColor, Qt.GlobalColor, QGradient])¶ Sets the start color for the gradient ramp.
See also
-
setColor2
(self, color: Union[QColor, Qt.GlobalColor, QGradient])¶ Sets the end color for the gradient ramp.
See also
-
setRamp
(self, ramp: QgsGradientColorRamp)¶ Sets the color ramp to show in the dialog.
- Parameters
ramp – color ramp
See also
-
showEvent
()¶
-
tabletEvent
()¶
-
timerEvent
()¶
-
updateMicroFocus
()¶
-
wheelEvent
()¶