#include "mainwindow.h" MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) { // setWindowState(Qt::WindowFullScreen); // setCentralWidget(centralWidget); } /* * void MainWindow::setPlotButton() { * button = new QPushButton("push"), * button->setCheckable(true); * connect(button, SIGNAL(toggled(bool)), this, SLOT(toggled(bool))) * QHBoxLayout *plotsLayout = new QHBoxLayout; * plotsLayout->setSpacing(10); * plotsLayout->addWidget(funPlot); * QHBoxLayout *buttonsLayout = new QHBoxLayout ; * buttonsLayout->addWidget(button); * QVBoxLayout *widgetLayout = new QVBoxLayout; * widgetLayout->addLayout(plotsLayout); * widgetLayout->addLayout(buttonsLayout); * setLayout(widgetLayout); * ... */