QCustomPlot Discussion and Comments

resize qcustomplotReturn to overview

How do I get customPlot to resize automatically when the window size changes? Thanks.

this is a basic of Qt, not related to Qcustomplot... you need to add your plot to a Layout

  layout1 = new QGridLayout(parent);
    layout1->addWidget(plot,0, 0);

But how can I add plot to layout using addWidget if it isn't a widget? Did you mean something like:

myPlot = new QCustomPlot(parentWidget)
and then