Class: QgsPresetColorRampDialog

class qgis.gui.QgsPresetColorRampDialog(ramp: QgsPresetSchemeColorRamp, parent: QWidget = None)

Bases: PyQt5.QtWidgets.QDialog

Constructor for QgsPresetColorRampDialog.

Parameters
  • ramp – initial ramp to show in dialog

  • parent – parent widget

A dialog which allows users to modify the properties of a QgsPresetSchemeColorRamp.

actionEvent()
buttonBox(self) → QDialogButtonBox

Returns a reference to the dialog’s button box.

New in version 3.10.

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) → QgsPresetSchemeColorRamp

Returns a color ramp representing the current settings from the dialog.

See also

setRamp()

receivers()
resizeEvent()
sender()
senderSignalIndex()
setRamp(self, ramp: QgsPresetSchemeColorRamp)

Sets the color ramp to show in the dialog.

Parameters

ramp – color ramp

See also

ramp()

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