开发者

QGLWidget::renderText bounding box

Is it possible to get the bounding box of the outpu开发者_Python百科t of QGLWidget::renderText() in logical or window coordinates? How?


You can try to use QFontMetrics::boundingRect(). Also maybe you'll need to consider how it handles the newline character (\n).

There's an overloaded QFontMetrics::boundingRect() that returns the bounding rect of the given text within a specified rectangle as well.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜