Did you add the path to the QtCharts include files to your project configuration? You can't just write #include <QPieChart> and expect your compiler to know where to find that file if it lives in a different path from other include files.