
Qt
葱花叔
学生党,小透明,小弱渣
展开
-
Qt中存储和打开某一路径的图片
QPixmap save_P,open_P;QString save_fileName,open_fileName;save_fileName = QFileDialog::getSaveFileName(this, QString::fromLocal8Bit("Save"),QDir::currentPath()+ "/untitled.png",tr("Images (*.png *.x原创 2018-01-29 17:28:24 · 3835 阅读 · 0 评论 -
Qt5+opencv操作图像镜像显示和旋转显示
QPixmap src; src.load("1.bmp"); QMatrix matrix; matrix.rotate(-90.0);//逆时针旋转90度 src= src.transformed(matrix,Qt::FastTransformation); QImage src_1= src.toImage(); src...原创 2018-12-06 15:00:58 · 1622 阅读 · 1 评论 -
QT+Opencv 将数组数据存入txt文件代码
int *ptr=new int [cnt]; ofstream outfxss12; outfxss12.open("xianshi2.txt"); for (int i=0;i<cnt;i++) outfxss12<<ptr[i]<<endl; outfxss12.close();原创 2018-12-07 22:47:35 · 1664 阅读 · 0 评论 -
qt 让label显示图片并把图片居中
QPixmap fitpixmap=image.scaled(ui->label->size(), Qt::KeepAspectRatio, Qt::SmoothTransformation); ui->label->setPixmap(fitpixmap); ui->label->setAlignment(Qt::AlignC...原创 2018-07-26 12:36:28 · 18238 阅读 · 5 评论 -
Qt将文本信息输出存储txt格式和从txt中读取数据信息
ofstream file; file.open("xinjian.txt"); file<<canshu1<<endl; file<<canshu2<<endl; ... file.close();将需要存储的参数存储在“xinjian.txt”...原创 2018-07-26 11:22:51 · 4552 阅读 · 0 评论 -
qt在label中显示图片,旋转和镜像
//关于镜像旋转,QImage中有对应的接口,可以通过设定水平、垂直方向旋转QImage image::mirrored(bool horizontal = false, bool vertical = true) const ;//水平翻转 image = image.mirrored(true, false); imageLabel->setPixmap(QP...原创 2018-07-26 10:39:10 · 9118 阅读 · 2 评论 -
将QT的工程项目打包成一个exe程序
转自https://blog.youkuaiyun.com/windsnow1/article/details/78004265针对上述文章,对自己生成.exe文件做一个记录和分享。在win10专业版下。<1>: 打开一个QT程序,以release方式运行一次。。 这时你的工程项目文件夹下,会生成一个关于release的文件夹: 。<2>:打开关于release相关的文件夹,找到该目录...转载 2018-07-04 09:56:37 · 3786 阅读 · 1 评论 -
Qt+Opencv+cmake在win10系统下的完美配置
升级了系统,在win10环境下进行Qt+Opencv+CMake的配置之前在win7系统下的配置链接:http://blog.youkuaiyun.com/sinat_36420785/article/details/60906140本文参考:https://wiki.qt.io/How_to_setup_Qt_and_openCV_on_Windows Qt:5.9.1 ...原创 2018-03-05 11:10:52 · 4403 阅读 · 0 评论 -
slam的一些库函数安装
转载自:http://blog.youkuaiyun.com/qq_16149777/article/details/78657295最近在学SLAM,每次编译都少了库函数,然后逆天的linux操作让我这个小白对这些错误提示还有安装库函数很崩溃,从网上找了这个相关文章,学习学习前言 本篇博客主要写了视觉SLAM常用库的安装方法,主要包括Eigen线性代数库、Sophus李代数库、OpenCV计算机视觉库、P...转载 2018-03-07 20:56:09 · 1068 阅读 · 0 评论 -
C++编译的数组最大长度讨论
参考https://blog.youkuaiyun.com/a479778594/article/details/70157121https://blog.youkuaiyun.com/github_30605157/article/details/57084216 数组分类: 数组的分配方式大概有两种方式:静态分配和动态分配。根据数组声明的位置,我们可以将数组分为局部数组和全局数组。这样就有,静态...原创 2018-12-11 11:11:01 · 1386 阅读 · 0 评论