Window::Window(QWidget *parent): KMainWindow(parent)
{
view=new QGraphicsView(this);
QGraphicsScene scene(0,0,1366,768);
scene.addText("Hello, world!");
view->setScene(&scene);
view->show();
}

i created above as my mainwindow .
"hello world " is not displaying on the window