Class: QgsCptCityColorRampDialog

class qgis.gui.QgsCptCityColorRampDialog(ramp: QgsCptCityColorRamp, parent: QWidget = None)

Bases: PyQt5.QtWidgets.QDialog

Constructor for QgsCptCityColorRampDialog.

Parameters
  • ramp (QgsCptCityColorRamp) – initial ramp to show in dialog

  • parent (QWidget = None) – parent widget

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

actionEvent()
buttonBox(self) → QDialogButtonBox

Returns a reference to the dialog’s button box.

New in version 3.10.

Return type

QDialogButtonBox

changeEvent()
changed

Emitted when the dialog settings change [signal]

childEvent()
closeEvent()
connectNotify()
contextMenuEvent()
create()
customEvent()
destroy()
disconnectNotify()
dragEnterEvent()
dragLeaveEvent()
dragMoveEvent()
dropEvent()
enterEvent()
event()
eventFilter(self, obj: QObject, event: QEvent) → bool
Parameters
  • obj (QObject) –

  • event (QEvent) –

Return type

bool

focusInEvent()
focusNextChild()
focusNextPrevChild()
focusOutEvent()
focusPreviousChild()
hideEvent()
initPainter()
inputMethodEvent()
isSignalConnected()
keyPressEvent()
keyReleaseEvent()
leaveEvent()
metric()
mouseDoubleClickEvent()
mouseMoveEvent()
mousePressEvent()
mouseReleaseEvent()
moveEvent()
nativeEvent()
paintEvent()
ramp(self) → QgsCptCityColorRamp

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

See also

setRamp()

Return type

QgsCptCityColorRamp

receivers()
resizeEvent()
saveAsGradientRamp(self) → bool

Returns True if the ramp should be converted to a QgsGradientColorRamp.

Return type

bool

selectedName(self) → str

Returns the name of the ramp currently selected in the dialog.

Return type

str

sender()
senderSignalIndex()
setRamp(self, ramp: QgsCptCityColorRamp)

Sets the color ramp to show in the dialog.

Parameters

ramp (QgsCptCityColorRamp) – color ramp

See also

ramp()

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