Hi,
These things work as I'd expect:
ui->graph_widget->setInteraction(QCP::iRangeDrag, true);
ui->graph_widget->setInteraction(QCP::iRangeZoom, true);
But setRangeZoomFactor just doesn't, I've tried:
ui->graph_widget->setInteraction(QCPAxisRect::setRangeZoomFactor, 0.8);
ui->graph_widget->setInteraction(QCPAxisRect::setRangeZoomFactor(0.8));
ui->graph_widget->setInteraction(QCPAxisRect::setRangeZoomFactor(0.8), true);
I'm confused, help? :)