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.

New in version 3.0: Enums

Methods

actionEvent

buttonBox

Returns a reference to the dialog’s button box.

changeEvent

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

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

receivers

resizeEvent

saveAsGradientRamp

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

selectedName

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

sender

senderSignalIndex

setRamp

Sets the color ramp to show in the dialog.

sharedPainter

showEvent

tabletEvent

timerEvent

updateMicroFocus

wheelEvent

Signals

changed

Emitted when the dialog settings change [signal]

Attributes

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(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()