textIn = new QTextEdit("no text in file"); textOut = new QTextEdit("Please, click button Run"); runButton = new QPushButton("Run"); undoButton = new QPushButton("Undo"); hideButton = new QPushButton("Hide"); changeChoiceCombo = new QComboBox; changeChoiceCombo->addItem("1"); changeChoiceCombo->addItem("2"); changeChoiceCombo->addItem("3"); changeChoiceCombo->addItem("4"); changeChoiceCombo->addItem("5"); tableWidget = new QTableWidget; undoButton->setEnabled(false); //disabled button "Undo" //creating interface QHBoxLayout *layout = new QHBoxLayout; layout->addWidget(undoButton); layout->addWidget(changeChoiceCombo); layout->addStretch(); layout->addWidget(hideButton); layout->addWidget(runButton); QVBoxLayout *main_Layout = new QVBoxLayout; main_Layout->addWidget(textIn); main_Layout->addLayout(layout); main_Layout->addWidget(tableWidget); setLayout(main_Layout);
splitter = new QSplitter; splitter->addWidget(&treeview); Layout.addWidget(menuBar,0,0,1,1); Layout.addWidget(&treeview,1,0,1,1); Layout.addWidget(splitter,1,1,1,1); Layout.addWidget(&tabwidget,1,1); Layout.setColumnStretch(1,100); setLayout(&Layout);