I am building a class that just draws a plot and I don't want to have this class inherit from QCustomPlot. I want to create is as:
mCustomPlot = new QCustomPlot(this);
when I do this, the plot is small and stuck to the upper left corner of the QWidget. Is there a way around this?
If I call setGeometry on mCustomPlot as the demo's di, I get the image a fixed size ceneterd in the client window.
If I inherit from QCustomPlot Then everything is correct, the image flows with the size of the widget pane.
Is what I want to do possible?