void MainWindow::on_Graph_clicked(){ Scene.addLine(rand()%100,rand()%100,rand()%100,rand()%100);}
void MainWindow::on_pushButton_clicked(){ QGraphicScene *gs = new QGraphicScene; ui->graphicsView->setScene(gs); gs->addLine(1,2,3,5);}