This project is fairly complete example of using the QCustomPlot class. All mouse handlers are enabled so you can zoom using the mousewheel, select individual axes and zoom only one axis at a time, change the plot title by clicking on it, or change legends.
After cloning this repository, execute the following commands:
$ git submodule init
$ git submodule update
$ cd qcustomplot
$ ./run-amalgamate.sh
To build the example application, run:
$ mkdir build
$ cmake ..
$ make
$ ./source/plotapp