[PlotView|BarChartView] fixed includes for save as PDF functionality in Qt5; changed char conversion from depricated method