1

我用-MT编译了QT动态(修改配置文件)

我的代码是这样的(我的程序也是带有 MT 的发布模式):

int main( int argc, char *argv[] )

{
    int ret = 0;

    if( 0 == ret )
    {
        QApplication a( argc, argv );
        {
            test01 w;
            w.show();
            ret = a.exec();
        }
    }

    return ret;
}

test01 is very simple like this:

class test01 : public QMainWindow

{
    Q_OBJECT

public:
    test01(QWidget *parent = 0);
    ~test01();

private:
    Ui::test01Class ui;
};

一切正常,但是当离开主功能时,它崩溃了:

[enter image description here][1]

有人会帮助我吗?

4

0 回答 0