Why is this happening?
Adsız.png

//mainwindow.cpp
Qt Code:
  1. #include "mainwindow.h"
  2. #include "ui_mainwindow.h"
  3. #include<QtCore>
  4. #include<QtGui>
  5. #include<QMessageBox>
  6. #include"secondwindow.h"
  7.  
  8. MainWindow::MainWindow(QWidget *parent) :
  9. QMainWindow(parent),
  10. ui(new Ui::MainWindow)
  11. {
  12. ui->setupUi(this);
  13. }
  14.  
  15. MainWindow::~MainWindow()
  16. {
  17. delete ui;
  18. }
  19.  
  20. void MainWindow::on_pushButton_clicked()
  21. {
  22. QMessageBox::information (this, "Title", "kaydedildi");
  23. }
  24.  
  25. [B]void MainWindow::on_pushButton_3_clicked() //When i clicked this button the problem occurs
  26. {
  27. msecond = new Secondwindow(this);
  28. msecond->show();
  29. }[/B]
To copy to clipboard, switch view to plain text mode