Requirement:
To create a simple popup dialog to show a Rich Text message (that comes on a single QString).
I do not want to use a scroll bar for viewing the text that crosses the current view area.
Instead, i have two buttons to go to Next and Prev page. [Pls refer the attachment]

PageNavigation.png

The Problem:
i am not able to identify the number of characters to be shown, limiting to the viewable area.

Limitations:
1. Font size could change based on the actual text (So, cannot have a constant pixel size per character)
2. Any number of new line characters can be there. (So, cannot literally count the number of characters as well to decide on the page size)
3. UI Look and feel should not change (it is for a touch-based application)

Options I tried:
1. Used QTextEdit and disabled vertical scroll bars. But couldnt find out the last shown line number or the sub-string, corresponding to the view area
2. Using QTextDocument and QTextCursor seems to be a heavy implementation (and seems it requires a good effort to learn in detail) - I am limited by time now.

Can anyone help me out ASAP?

Thanks in advance!

- Sudhakaran.