QLabel加载图片

//在对应的控件中显示图片
void qm_img::DisplayImg(cv::Mat imgParam, QLabel *labelParam)
{
if (!imgParam.empty())
{
cv::Mat img_index1 = imgParam.clone();
//cvtColor(img_index1, img_index1, cv::COLOR_BGR2RGB);
QImage qimg1 = Mat2QImage(img_index1);
labelParam->clear();
//labelParam->setScaledContents(true);
labelParam->setPixmap(QPixmap::fromImage(qimg1));
//labelParam->resize(labelParam->pixmap()->size());
labelParam->show();
}
}

最新文章

  1. Unity3D新手引导开发手记
  2. 优才网Go名库讲解全套教程
  3. 用 C 扩展 python
  4. RabbitMQ(五) -- topics
  5. Django~NewProject and APP
  6. osg中使用MatrixTransform来实现模型的平移/旋转/缩放
  7. 第十五章:Android 调用WebService(.net平台)
  8. 18.allegro区域约束规则设置
  9. wpa_supplicant使用笔记
  10. es6整理
  11. Micosoft.ReportViewer.WebForms v 11.0... 1.0.1
  12. Forms Authentication in ASP.NET MVC 4
  13. poj 1142 Smith Numbers
  14. 决策树ID3算法
  15. JS中怎样判断undefined(比较不错的方法)
  16. Servlet以及单例设计模式
  17. POJ 2139 Six Degrees of Cowvin Bacon (Floyd)
  18. sql server得到某个数据库的所有表和所有字段
  19. 彻底卸载Oracle database 12c教程
  20. leetcode74:二维矩阵搜索问题

热门文章

  1. :Spring-06 -AOP [面向切面编程] -配置异常通知的两种方式--AspectJ 方式 -Schema-based 方式
  2. 【Low版】HAUT - OJ - Contest1035 - 2017届新生周赛(六)题解
  3. 工作中 99% 能用到的 Git 命令
  4. Flask - 四剑客 | templates | 配置文件 | 路由系统 | CBV
  5. vue中input输入第一个字符时,光标会消失,需要再次点击才能输入
  6. Continuous Subarray Sum II
  7. Emmet的HTML语法(敲代码的快捷方式)
  8. Centos7 minimal 安装npm
  9. C++编程习惯
  10. 06.volatile关键字