@JoeCFD said in Simple Line Series Plot not Filling the Centeral Widget?:
@xpress_embedo said in Simple Line Series Plot not Filling the Centeral Widget?:
chartView
can you try to set size policy of frame to ?
setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Preferred );
you may set the same thing to chartView
Thanks @JoeCFD for your suggestion.
Unfortunately it didn't worked, I added the following lines of code.
ui->frame->setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Preferred );
chartView->setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Preferred );
Later, I did the following changes and now the plot is okay.
chartView->setMinimumSize( ui->frame->size() );
For me this is working, thanks for your support, and let me know if you or someone else has some suggestions for me.