Is it possible to get the exact string height (pixels)?

I mean something like QFontMetrics::height() or QFontMetrics::boundingRect() but both height() and boundingRect() give some abstract height related to the current font (not to the particular string)