运行:./test -qws 界面有出来,不过是假的,点击里面的按钮,直接点到desktop上的图标了,就是说是假界面。。。一个幻影,这是怎么了?
我的程序就只有一个close 按钮,点击了之后退出,
#include "mainwindow.h"
#include "ui_mainwindow.h"
MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow)
{
ui->setupUi(this);
connect(ui->pushButton,SIGNAL(clicked()),this,SLOT(close()));
}
MainWindow::~MainWindow(){
delete ui;
qWarning("~Mainend\n");
}
而且ctrl c 之后没有执行qWarning("~Mainend\n");
编译出了test执行文件
$ file test
test: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, not stripped