Class: QgsCptCityColorRampDialog

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

Bases: PyQt5.QtWidgets.QDialog

Constructor for QgsCptCityColorRampDialog.

Parameters:
  • ramp – initial ramp to show in dialog
  • parent – parent widget

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

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(self, obj: QObject, event: QEvent) → 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()

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

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

selectedName(self) → str

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

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

Sets the color ramp to show in the dialog.

Parameters:ramp – color ramp

See also

ramp()

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