Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 QPrinter 创建报告并嵌入到 qt 应用程序中。创建报告没有问题,但显示是问题。
当我滚动报告时,显示问题来了。请看图片。
请参阅注释文本。如果我按 CTRL 并滚动,那么这不会出现。如何解决这个问题。
我找到了解决方案。
实际上我使用半透明颜色作为文本。
painter.setPen(QPen(QColor(40,40,40,200),3,Qt::SolidLine));
在我移除并变成纯色后,它是固定的
painter.setPen(QPen(QColor(140,140,140,255),3,Qt::SolidLine));
谢谢...