How to get the font metrics of a QPainter outside paintEvent drawing method? I would need this before painting on the screen.
            Asked
            
        
        
            Active
            
        
            Viewed 639 times
        
    1 Answers
2
            If you need to do text layout outside of your paint event, just create a QFontMetrics from the font you will be using.
        Dan Milburn
        
- 5,600
 - 1
 - 25
 - 18
 
- 
                    Which font is this one? if we do not set it manually? http://stackoverflow.com/questions/11011238/how-do-you-get-system-default-font-settings-in-qt – Adrian Maire Jan 28 '16 at 12:58