How to convert font in QGraphicsObject from dot size to pixel size? I need to do this so that the fonts look correct when I print my QGraphicsScene using QGraphicsScene::render() .
QGraphicsObject
QGraphicsScene
QGraphicsScene::render()
The QFontMetrics class will probably do the job. Just create your desired QFont, set its point size. Then create a QFontMetrics object on your QFont.