c++ - 如何在 QT Designer 中放置像素图
问题描述
void Editor::DisplayImage(QString(pathOfImage))
{
// QPixmap pix (pathOfImage);
// ui->lbl_DisplayImage->setPixmap(pix);
// ui->lbl_DisplayImage->lower();
// annotationPixmap = QPixmap(pix.size());
// annotationPixmap.fill(Qt::transparent);
ui->lbl_DisplayImage->setPixmap(annotationPixmap);
annotationPixmap = QPixmap(pathOfImage);
clickMouse = false;
}
我正在尝试移动此像素图并更改像素图图像的大小。我尝试过使用标签,但它们阻止我在图像上绘图,并且图纸总是放在图像后面。有没有办法操纵像素图?
解决方案
推荐阅读
- node.js - 将 webm blob 发送到 nodejs 并将其保存在服务器上
- python - Groupby 在一段时间内
- .net - WebForms Application_Error() 到 Azure Blob 存储 - 站点挂起
- php - 使用 cakephp 3 和 doompdf 创建 pdf,未生成 pdf
- dart - 从 Dart 类列表中获取字符串的更有效方法
- python - 从 Pandas Datetime Excel DateOffset 中剥离时间
- python - 加载自己的数据以在 microsoft azure 机器学习中进行远程培训
- sql - 嵌套 SQL AND OR 语句失败。我的错误在哪里?
- pycharm - Pycharm 未显示 xml.dom.minidom API 可用函数的自动建议
- r - 在 r 中的矩阵中找到最后一次出现的满足标准的索引