If you need to do text layout outside of your paint event, just create a QFontMetrics from the font you will be using.
How to get the font metrics of a QPainter outside paintEvent?
-
03-12-2021 - |
Pergunta
How to get the font metrics of a QPainter outside paintEvent drawing method? I would need this before painting on the screen.
Solução
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow