QCustomPlot Discussion and Comments

Change "graph()->setName" Setting?Return to overview

Is there any way I can rename a graph by double clicking it? I managed to do that with the title with void MainWindow::titleDoubleClick(QMouseEvent* event, QCPPlotTitle* title) - is there a similar command for the name tag?

Have a look at the interactions example. It's part of the the full package download. There, double clicking the legend item of a graph allows renaming it. If you want to react to double-clicks on the graph itself, use the QCustomplot::plottableDoubleClick signal.

thx that was exactly what I needed.

A maybe stupid question: Those connect(ui->QCustomplotarea->...) lines: Are they substituting the graphical SIGNAL Slots I can do in the QCreator?

Yes, see the signal/slots tutorial of Qt.