void WorkoutCreator::exportWorkoutToPdf() {
/// TODO: Add Title, remove background image, increase margins
ui->widget_plot->setContentsMargins(20,20,20,20);
QwtPlotRenderer renderer;
renderer.exportTo( ui->widget_plot, "shapes.pdf" );
/// Revert plot back to normal (best would be to copy to a new QwtPlot and trash it after this function is done..)
ui->widget_plot->setContentsMargins(0,0,0,0);
}
void WorkoutCreator::exportWorkoutToPdf() {
/// TODO: Add Title, remove background image, increase margins
ui->widget_plot->setContentsMargins(20,20,20,20);
QwtPlotRenderer renderer;
renderer.exportTo( ui->widget_plot, "shapes.pdf" );
/// Revert plot back to normal (best would be to copy to a new QwtPlot and trash it after this function is done..)
ui->widget_plot->setContentsMargins(0,0,0,0);
}
To copy to clipboard, switch view to plain text mode
Bookmarks