当前位置:网站首页>Visual Studio 2019-QT调试
Visual Studio 2019-QT调试
2022-07-17 00:14:00 【hjl011006】
下载插件
打开vs

扩展->管理扩展->搜索Qt VS Tools->安装第一个

关闭
新建

运行结果

乱码问题
第一种解决方法
#include "qtwidgets.h"
#include <QtWidgets/QApplication>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QtWidgets w;
w.setWindowTitle(u8"第一个窗口");// 转为utf-8编码
w.show();
return a.exec();
}
第二种解决方式 :
打开编译文件,记事本打开->另存为->编码格式改为包含bom的utf-8格式保存
第三种解决方式:
下载插件;下载第三个

边栏推荐
猜你喜欢

Static library and dynamic library

04 design of indoor wireless positioning system based on ZigBee

Vmware Tools最新安装教程(RHEL8)

【解决方案】win11中本地组策略编辑器(gpedit.msc)打不开

ENVI_IDL:批量重投影Modis Swath产品并指定范围输出为Geotiff格式+解析

01基于RFID的智能仓储管理系统设计

Compilation and link of C language program

成信大ENVI_IDL第三周课堂内容1:读取OMI数据(HDF5文件)以及输出+解析

Dueling DQN的理论基础及其代码实现【Pytorch + Pendulum-v0】

Opengauss Developer Day 2022 dongfangtong sincerely invites you to visit the "dongfangtong ecological tools sub forum"
随机推荐
windows安装mysql和jdbc
DoubleDQN的理论基础及其代码实现【Pytorch + Pendulum-v0】
Clion 安装以及中开发ROS实现自动提示补全
Frustratingly Simple Few-Shot Object Detection
博客里《DSAA》相关文章的代码
池式组件之线程池篇
Oozie integrated sh
ENVI_IDL:读取所有OMI产品的NO2柱含量并计算月均值、季均值、年均值+解析
Saber Pspice simulink电源仿真软件的区别
Compilation and link of C language program
Leetcode 322: Coin Change - 动态规划
Can protocol communication
Labelme 的简单用法和界面介绍
ENVI_ Idl: read the NO2 column content of all OMI products and calculate the monthly average, quarterly average, annual average + analysis
【解决方案】win11中本地组策略编辑器(gpedit.msc)打不开
(with word operation and video explanation) map registration using ArcGIS_ Projection transformation_ General map making_ Thematic map making
ENVI_ Idl: average calculation + analysis of MODIS swath products in batches
gdb+vscode进行调试2——gdb断点相关
Switch details
The code of dsaa related articles in the blog