Skip to content

QColorDialog

QColorDialog is a widget that provides a color dialog that you can use in your application.

Example

example_colorDialog.ts
import { QColorDialog } from '@vixen-js/core';
const colorDialog = new QColorDialog();
colorDialog.setCurrentColor(new QColor("black"))
colorDialog.exec();
const color = colorDialog.currentColor();
console.info(color.red(), color.green(), color.blue());

Learn more about QColorDialog in: https://doc.qt.io/qt-6/qcolordialog.html