{
if (mainWindow->objectName().isEmpty())
mainWindow
->setObjectName
(QString::fromUtf8("mainWindow"));
mainWindow->resize(800, 600);
//grid layout
layoutWidget
= new QWidget(mainWindow
);
layoutWidget->setLayout(gridLayout);
mainWindow->setCentralWidget(layoutWidget);
//openGL window
windowOpenGL = new GLWidget(mainWindow);
//Splitter
dirBrowser
= new QSplitter(mainWindow
);
//define the where the browsers will be contained
//... here I add QListViews and QTreeViews to the splitter
//Text view
textView->setReadOnly(true);
gridLayout->addWidget(dirBrowser, 0, 0, 1, 1);
gridLayout->addWidget(textView, 1, 0, 1, 1);
gridLayout->addWidget(windowOpenGL, 2, 0, 1, 1);
// .. here there are some connects(...)
}
void setupUi(QMainWindow *mainWindow)
{
if (mainWindow->objectName().isEmpty())
mainWindow->setObjectName(QString::fromUtf8("mainWindow"));
mainWindow->resize(800, 600);
//grid layout
gridLayout = new QGridLayout();
layoutWidget = new QWidget(mainWindow);
layoutWidget->setLayout(gridLayout);
mainWindow->setCentralWidget(layoutWidget);
//openGL window
windowOpenGL = new GLWidget(mainWindow);
//Splitter
dirBrowser = new QSplitter(mainWindow); //define the where the browsers will be contained
//... here I add QListViews and QTreeViews to the splitter
//Text view
textView = new QTextEdit(mainWindow);
textView->setReadOnly(true);
gridLayout->addWidget(dirBrowser, 0, 0, 1, 1);
gridLayout->addWidget(textView, 1, 0, 1, 1);
gridLayout->addWidget(windowOpenGL, 2, 0, 1, 1);
// .. here there are some connects(...)
}
To copy to clipboard, switch view to plain text mode
Bookmarks