[Qt-creator] mainwindow.cpp has unexpectedly finished.

Heena Mahur hena18 at rocketmail.com
Sun Jul 1 16:38:26 CEST 2012


Hey,
Please have a look at mainwindow.cpp
#include"mainwindow.h"
#include"ui_mainwindow.h"
#include<QSplitter>


MainWindow::MainWindow(QWidget*parent):

QMainWindow(parent),

ui(newUi::MainWindow)
{QSplitter*splitter1=newQSplitter(parent);
QSplitter*splitter2=newQSplitter(parent);
splitter1->addWidget(ui->treeWidget);
splitter1->addWidget(ui->groupBox);

splitter2->addWidget(ui->groupBox);splitter2->addWidget(ui->scrollArea);




ui->setupUi(this);
}

MainWindow::~MainWindow()
{
deleteui;
}
Using qt creator I am getting this error -Starting /home/heena/Documents/untitled3/untitled3...
The program has unexpectedly finished.
/home/heena/Documents/untitled3/untitled3 exited with code 0
RegardsĀ 
bye
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20120701/ccccf0b8/attachment.html>


More information about the Qt-creator mailing list