SUMMARY pressurecurvewidget.cpp missing "#include <QPainterPath>" wacomtablet-3.2.0/src/kcmodule/pressurecurvewidget.cpp STEPS TO REPRODUCE 1. g++ -o pressurecurvewidget pressurecurvewidget.cpp 2. add "#include <QPainterPath>" just after "#include <QPainter>" 3. no compile error OBSERVED RESULT Compile error: ‘QPainterPath curvePath’ has incomplete type and cannot be defined pressurecurvewidget.cpp:185 pressurecurvewidget.cpp:190 EXPECTED RESULT wacomtablet-3.2.0/src/kcmodule/pressurecurvewidget.cpp no compile error SOFTWARE/OS VERSIONS Windows: macOS: Linux/KDE Plasma: (available in About System) KDE Plasma Version: 5.18.5 KDE Frameworks Version: n/a Qt Version: 5.15.0 ADDITIONAL INFORMATION Fix: add "#include <QPainterPath>" just after "#include <QPainter>"
Addendum: see also applications-extra/calligraplan-3.2.2/src/libs/ui/kptganttitemdelegate.cpp Same compile error, also fixed by adding #include <QPainterPath> kptganttitemdelegate.cpp:550, 562, 583, 673, 693, 705, etc. ‘QPainterPath path’ has incomplete type and cannot be defined ‘QPainterPath p’ has initializer but incomplete type
https://invent.kde.org/system/wacomtablet/commit/4f73ff02b3efd5e8728b18fcf1067eca166704ee