Hi all,
QPainter provides the function
QPainter::drawText() to draw a text in a given bounding rectangle.
Now, the situation is that I have to print a vertical list of texts and this function helps me to write a text without overriding the adjacents. It could so happen that a text requires more lines. Since I don't know how many lines it requires, is there a way to know how many of those lines it used or it is gonna to use (before drawing)?
I looked in the documentations but I found nothing usefull. Ideas?
Bookmarks