Rubber band changed the axis range like silly
-
-
Hi,
Can you show the code you are using ?
Can you provide a minimal compilable example that shows this behaviour ?
Which version of Qt are you using ?
On which platform ? -
Hi,
Can you show the code you are using ?
Can you provide a minimal compilable example that shows this behaviour ?
Which version of Qt are you using ?
On which platform ?@SGaist Im on ubuntu 18.4 and im using the version 5.15 of qt
here is my code
``` chart->addAxis(axisX, Qt::AlignBottom); axisY->setTickCount(1); axisY->setRange(-2,+2); chart->addAxis(axisY, Qt::AlignLeft); chart->legend()->setAlignment(Qt::AlignRight); chart->legend()->setMarkerShape(QLegend::MarkerShapeCircle); chartView->setRenderHint(QPainter::Antialiasing); chartView->setRubberBand(QChartView::RectangleRubberBand); ```
the first photo is before zoom in
the second one is after zoom in with rubber band -
The code looks good.
Can you provide a minimal compilable example that shows this behaviour ?
-
The code looks good.
Can you provide a minimal compilable example that shows this behaviour ?
-
@SGaist I was though screen shots are enough but if you say what kind of example should i show you i will show immediately
@firsnur96 @SGaist means a small application which demonstrates the issue you have, so others can reproduce it.