QCustomPlot Discussion and Comments

How to use rangeChanged with lambda expressions?Return to overview

Hi. I do so, but it is not working. How to correct?

QObject::connect(ui->customPlot->xAxis, &QCPAxis::rangeChanged, [=](){
          QMessageBox::critical(NULL,QObject::tr("окошко"),tr("Ура, заработало " ));
       });

What are you trying to do...
What it is supposed to do...
What it is doing now...

If you need some help, you first need to help us understand your problem...