当前位置:网站首页>vs2015+PCL1.8.1+qt5.12-----(1)
vs2015+PCL1.8.1+qt5.12-----(1)
2022-06-26 00:26:00 【ooolmf】
电脑系统是win7.64位。
1、安装vs2015.
这里的vs2015尝试过是3.8G左右的安装包。发现不行,总是提示缺少什么什么的,后面下载了一个6G左右的安装包,一路直接按照提示安装就行,不会提示缺少了什么东西。
这一步也耗费了很多时间,安装vs2015大概需要一个小时。注意不要默认,要自定义,把C++也添加进去

2、安装qt.
这需要注册一个账号,按照要求安装就好。
我这里安装的是qt5.12.2版本。
3 VS2015和qt联合;
安装
qt-vs-tools-msvc2015-2.0.0.vsix
4、VS中


在这里插入图片描述

测试QT和VS是否能联合调试。
参考https://www.it610.com/article/1280320307999031296.htm
其他自己上网。





双击ui这个文件。
打开qt designer界面。、

放入一个pushbutton
放入一个label
拖过去。
添加信号和槽。添加一个button函数按下按键,响应button函数



保存QT项目。
ctrl+S
关闭qtdesigner.
vs中,调试。运行。没有问题的话,出现qt界面。

添加函数,button环没有函数内容。
双击




在这里插入图片描述
手动添加函数声明。

在这里插入图片描述

//按键响应函数
//将a编程字符串,然后赋值给label显示
void QtGuiApplication3::button()
{
QString temp;
static int button_cnt = 0;
double a = 123.45;
if (button_cnt == 0)
{
a = 873.25;
ui.label->setText(temp.setNum(a));
button_cnt = 1;
}
else if (button_cnt == 1)
{
a = -452.3;
ui.label->setText(temp.setNum(a));
button_cnt = 0;
}
3、安装PCL1.8.1.
PCL-1.8.1-AllInOne-msvc2015-win64.exe
边栏推荐
- Byte order problem
- 创建OpenGl窗口
- 通俗易懂C語言關鍵字static
- 阳光男孩陈颢天 受邀担任第六季完美童模全球总决赛代言人
- Make a row of the dataframe a column name
- Disruptor(一)Sequence
- Playful girl wangyixuan was invited to serve as the Promotion Ambassador for the global finals of the sixth season perfect children's model
- Abnova CMV CISH probe solution
- Introduction to gun make (1)
- Cs144 environment configuration
猜你喜欢

如何为政企移动办公加上一道“安全锁”?

Disruptor(一)Sequence

biggan:large scale gan training for high fidelity natural image synthesis

物联网亿万级通信一站式解决方案EMQ

Wanglaoji pharmaceutical's public welfare activity of "caring for the most lovely people under the scorching sun" was launched in Hangzhou

秀场精灵陈梓桐 受邀担任第六季完美童模全球总决赛首席体验官

Pre ++, post ++ and pre -- and post -- (+a, a++ and --a, a--)

NDK20b FFmpeg4.2.2 编译和集成

recvmsg & sendmsg

安装了Visual Studio 2013 Redistributable,mysql还是安装失败
随机推荐
元气少女王钰洁 受邀担任第六季完美童模全球总决赛代言人
清甜女孩李斯霞 受邀担任第六季完美童模全球总决赛小主持人
-- EGFR FISH probe solution
Is the securities account recommended by qiniu safe?
图形渲染管线
Easy to understand C language keyword static
17.11 std::atomic续谈、std::async深入谈
高手常用的电脑快捷键
cv==biaoding---open----cv001
Redis的使用
Finding the sum of N multiplications
Gun make (5) variables in makefile
Tengwenze, a hot-blooded boy, was invited to serve as the image ambassador of the global finals of the sixth season perfect children's model
二造实务案例答题技巧和举例汇总,满满都是精髓
LeetCode 41 ~ 50
Computer shortcut keys commonly used by experts
biggan:large scale gan training for high fidelity natural image synthesis
LeetCode 41 ~ 50
分布式系统(二)分布式事务的理解
Byte order problem