在QTCreater 5.9.4版上创建程序运行程序时,MSVC217 64位崩溃
救救我!我正在windows 10上运行Visual Studio 2017社区版,并使用Qt VS工具。我试图用MSVC217 64位编译器创建一个新项目,但程序在运行时崩溃。生成的代码是默认代码,未进行任何更改 build-untitled1-Desktop_Qt_5_9_4_MSVC2017_64bit-Debug\Debug\untitled1.exe。。。 无法检索调试输出。 程序意外地完成了。 这一进程被迫结束。 build-untitled1-Desktop_Qt_5_9_4_MSVC2017_64bit-Debug/Debug/untitled1.exe崩溃 代码:在QTCreater 5.9.4版上创建程序运行程序时,MSVC217 64位崩溃,qt,qt-creator,Qt,Qt Creator,救救我!我正在windows 10上运行Visual Studio 2017社区版,并使用Qt VS工具。我试图用MSVC217 64位编译器创建一个新项目,但程序在运行时崩溃。生成的代码是默认代码,未进行任何更改 build-untitled1-Desktop_Qt_5_9_4_MSVC2017_64bit-Debug\Debug\untitled1.exe。。。 无法检索调试输出。 程序意外地完成了。 这一进程被迫结束。 build-untitled1-Desktop_Qt_5_9_4_MS
提供代码段所在的位置crashing@Gurushant“我尝试创建新程序”->该程序默认为平台QTquick applycation Empty。您为visual studio设置了qt构建环境了吗?它位于Qt VS Tools>Qt中options@Gurushant是的,我安装并设置了在发布模式下尝试,看看是否存在相同的问题
#include "mainwindow.h"
#include <QApplication>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
MainWindow w;
w.show();
return a.exec();
}
#include "mainwindow.h"
#include "ui_mainwindow.h"
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
}
MainWindow::~MainWindow()
{
delete ui;
}