This is a color picker with RGB, XYZ and Lab color formats.
First, you need download qmake
using following commands:
sudo apt install qt5-qmake
sudo apt install qt5base-dev
Creating build directory:
mkdir build
cd build
Building application
qmake ..
make
Building application for Windows systems (generates Visual Studio files)
qmake -tp vc ..
Finally, run application with following command:
./lab1
If you have Qt Creator
application, you can simply open this project (by opening lab1.pro file) and build it.
The color picker is represented in flow::qwidgets::color_picker
class (inherited from QDialog
).
The code shows the simplest way to use flow::qwidgets::color_picker
class:
#include <QApplication>
#include <flow/color_picker.hpp>
int main(int argc, char *argv[]) {
QApplication a(argc, argv);
flow::qwidgets::color_picker color_picker;
color_picker.show();
return QApplication::exec();
}