April 2018
Beginner
714 pages
18h 21m
English
Ask Qt Creator to add a new C++ class to the project. Input SineItem as the class name, leave <Custom> in the Base class drop-down list, and input QGraphicsItem in the field below it. Finish the wizard and open the created sineitem.h file.
Set the text cursor inside QGraphicsItem in the class declaration and press Alt + Enter. At first; Qt Creator will suggest that you Add #include <QGraphicsItem>. Confirm that and press Alt + Enter on QGraphicsItem again. Now, Qt Creator should suggest that you select Insert Virtual Functions of Base Classes. When you select this option, a special dialog will appear:
The function list contains all virtual functions of the base class. The pure virtual functions ...
Read now
Unlock full access