Hi, DerManu, сongrats with new site and release! :)
I'm working on coupling many plots with many scrollbars.
Using signal-slots from your example:
connect(ui->verticalScrollBar, SIGNAL(valueChanged(int)), this, SLOT(vertScrollBarChanged(int))); connect(ui->plot->xAxis, SIGNAL(rangeChanged(QCPRange)), this, SLOT(xAxisChanged(QCPRange)));
Can you advice me, how better to send the pointer of relevant
QCustomPlot* into the slot
vertScrollBarChanged(int) and a pointer of relevant
QScrollbar* into the slot
When I worked with zoom/drag, I just used
sender(), but it don't work here, cause here are two objects to tie somehow - plot and scrollbar.