On Sun, Jul 1, 2012 at 5:38 PM, Heena Mahur <[email protected]> wrote:
> Hey,
> Please have a look at mainwindow.cpp
>
> #include "mainwindow.h"
>
> #include "ui_mainwindow.h"
>
> #include <QSplitter>
>
>
>
> MainWindow::MainWindow(QWidget *parent) :
>
>
> QMainWindow(parent),
>
>
> ui(new Ui::MainWindow)
>
> { QSplitter *splitter1 = new QSplitter(parent);
>
> QSplitter *splitter2 = new QSplitter(parent);
>
>
ui->treeWidget is null. It is constructed in setupUi()
> ui->setupUi(this);
>
>
Move this line to the beginning of the method.
PS: use a debugger - or valgrind. It will help you find those bugs.
_______________________________________________
Qt-creator mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/qt-creator