0
디버그 오류 : http://puu.sh/3p8zM.pngQt는 도구 모음 SIGSEGV 분할 오류 오류
내 도구 모음 속성 :. http://puu.sh/3p8Qo.png 내가 취소의 많이 나오기 전까지 내 프로그램이 잘 실행되고 지금은 :(디버깅이 SIGSEGV 오류가
내 코드 : 나는 UI-> setupUi 전에 (이) rPopulate()를 호출하기 때문에
#include "mainwindow.h"
#include "ui_mainwindow.h"
#include "login.h"
#include <QAction>
#include <QWidget>
#include <qaction.h>
mainwindow::mainwindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::mainwindow)
{
rPopulate();
ui->setupUi(this);
}
mainwindow::~mainwindow()
{
delete ui;
}
void mainwindow::rPopulate()
{
button = new QPushButton();
button->setText("Message");
//button->setIconSize(QSize(30,28));
ui->toolBar->addWidget(button);
}
void mainwindow::rNew()
{
}
void mainwindow::rView()
{
}
//ui->_menubar->addMenu(tr("&File"));