File indexing completed on 2024-04-07 04:35:37

0001 #include <colordialog.h>
0002 #include <qapplication.h>
0003 #include <qcolordialog.h>
0004 #include <rgbcolorspacefactory.h>
0005 
0006 int main(int argc, char *argv[])
0007 {
0008     QApplication app(argc, argv);
0009     auto myColorSpace = PerceptualColor::RgbColorSpaceFactory::createSrgb();
0010     PerceptualColor::ColorDialog m_colorDialog(myColorSpace);
0011     m_colorDialog.setOption(QColorDialog::ColorDialogOption::ShowAlphaChannel);
0012     m_colorDialog.show();
0013     return app.exec();
0014 }