program with Qt in C++

Job ID: 33929381

Budget: €8 – €20 EUR

Create a simple program in C++ with QT Creator, with a ChartView and a Chart
It must:
-by pressing the spacebar(keyPressEvent), part of the chart must be selected (with a QRect ?)
--move this rectangle if I select it along the chart
-with right mouse(press and release event) move the left and right side of this rectangle(enlarge or decrease the rectangle)
- print in a Qlabel the position and size of the rectangle within the chart.

the height of the rectangle is fixed, equal to that of the chart.