I draw in my Qt program on a QPainter the text and various elements round it. I need to get the sizes in pixels which will be occupied by this text.
Can I get somehow the sizes in pixels, knowing a text string and a font?
Thanks.