Why is this happening?
Adsız.png
//mainwindow.cpp
#include "mainwindow.h"
#include "ui_mainwindow.h"
#include<QtCore>
#include<QtGui>
#include<QMessageBox>
#include"secondwindow.h"
MainWindow
::MainWindow(QWidget *parent
) : ui(new Ui::MainWindow)
{
ui->setupUi(this);
}
MainWindow::~MainWindow()
{
delete ui;
}
void MainWindow::on_pushButton_clicked()
{
QMessageBox::information (this,
"Title",
"kaydedildi");
}
[B]void MainWindow::on_pushButton_3_clicked() //When i clicked this button the problem occurs
{
msecond = new Secondwindow(this);
msecond->show();
}[/B]
#include "mainwindow.h"
#include "ui_mainwindow.h"
#include<QtCore>
#include<QtGui>
#include<QMessageBox>
#include"secondwindow.h"
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
}
MainWindow::~MainWindow()
{
delete ui;
}
void MainWindow::on_pushButton_clicked()
{
QMessageBox::information (this, "Title", "kaydedildi");
}
[B]void MainWindow::on_pushButton_3_clicked() //When i clicked this button the problem occurs
{
msecond = new Secondwindow(this);
msecond->show();
}[/B]
To copy to clipboard, switch view to plain text mode
Bookmarks