如何在QT中覆盖2个图像
我有2个我在qimage中加载的图像,我的问题是: 如何以最简单的方式叠加这两个图像,然后将其保存在qpixmap中?
(最终图像将在qtableView中使用,以显示用户是否具有相同的药水)
I have 2 images that I load in QImage and my question is :
How can I overlay these 2 images in the simplest way, to then save it in a QPixmap ?
Here are the following images :
(The final image will be used in a QTableView to show the user if it has more of the same potion)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
经过更多的研究,我能够自己找到答案。
这是我想到的代码(如果您能做得更好,我想看它,因为如果有的话,我想实现任何更好的方法):
I was able to find the answer on my own after some more research.
Here is my code that I came up with (if you can do it better I would like to see it because I would like to implement any better approach if there is any):