7#include <QtWidgets/qtwidgetsglobal.h>
9#include <QtWidgets/qdialog.h>
22 NOTIFY currentColorChanged)
23 Q_PROPERTY(ColorDialogOptions options READ options WRITE setOptions)
27 ShowAlphaChannel = 0x00000001,
28 NoButtons = 0x00000002,
29 DontUseNativeDialog = 0x00000004,
30 NoEyeDropperButton = 0x00000008,
41 QColor currentColor()
const;
43 QColor selectedColor()
const;
45 void setOption(ColorDialogOption
option,
bool on =
true);
46 bool testOption(ColorDialogOption
option)
const;
47 void setOptions(ColorDialogOptions options);
48 ColorDialogOptions options()
const;
53 void setVisible(
bool visible)
override;
58 ColorDialogOptions options = ColorDialogOptions());
60 static int customCount();
The QColorDialog class provides a dialog widget for specifying colors.
void currentColorChanged(const QColor &color)
This signal is emitted whenever the current color changes in the dialog.
void colorSelected(const QColor &color)
This signal is emitted just after the user has clicked \uicontrol{OK} to select a color to use.
The QColor class provides colors based on RGB, HSV or CMYK values.
The QDialog class is the base class of dialog windows.
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
#define Q_DECLARE_FLAGS(Flags, Enum)
#define Q_DECLARE_OPERATORS_FOR_FLAGS(Flags)
#define QT_REQUIRE_CONFIG(feature)
file open(QIODevice::ReadOnly)