A native color-chooser dialog. More...
| Import Statement: | import Shotcut.Controls |
import Shotcut.Controls as Shotcut Shotcut.ColorDialog { id: colorDialog title: qsTr("Choose Color") onAccepted: filter.set("color", colorDialog.selectedColor) } Button { onClicked: colorDialog.open() }
selectedColor : color |
showAlpha : bool |
Whether the alpha (opacity) slider is shown. Defaults to true.
title : string |
The window title shown in the dialog's title bar.
accepted() |
Emitted when the user clicks OK. Read selectedColor for the result.
Note: The corresponding handler is onAccepted.
selectedColorChanged(color color) |
Emitted whenever selectedColor changes. color is the new value.
Note: The corresponding handler is onSelectedColorChanged.
open() |
Opens the native color dialog modally. Emits accepted if the user confirms, or no signal if cancelled.