In the code from last post you didn't add the widgets to layout.
Did you did that in your actual project? (You still need to do that)
{
double *buffer=NULL;
plot=new Plot(100,250,buffer,buffer+1,p);
data = new Data(250,buffer,p);
layout->addWidget(plot);
layout->addWidget(data);
//Start of on_watcher
data->on_watcher();
}
mainwindow::mainwindow(QWidget*p)
{
double *buffer=NULL;
plot=new Plot(100,250,buffer,buffer+1,p);
data = new Data(250,buffer,p);
QVBoxLayout* layout = new QVBoxLayout(this);
layout->addWidget(plot);
layout->addWidget(data);
//Start of on_watcher
data->on_watcher();
}
To copy to clipboard, switch view to plain text mode
Bookmarks