[CPP] Fixed compilation issues with latest version of Qt
-Fixed use of deprecated methods of QChart. -Fixed missing include.