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.
如何将我的字体QGraphicsObject从点大小转换为像素大小?我需要这样做,以便在我打印我的QGraphicsSceneusing时字体看起来正确QGraphicsScene::render()。
QGraphicsObject
QGraphicsScene
QGraphicsScene::render()
可能类 QFontMetrics 会完成这项工作。只需创建您想要的 QFont,设置它的磅值。然后在您的 QFont 上创建 QFontMetrics 对象。