Hi everyone,
I am using a QTextEdit to display some text. Sometimes, the text is longer than the visible viewing area and what I would like to do is to truncate the text to the last word that fits in the viewable area without the scroll panes. I would like to add something like "More" at the end of the text and when the user clicks on it, it does some action.
I figured out how to handle the clicking and highlighting by over riding the mouse events but i cannot figure out how to adjust the text so that the right amount is loaded into the QTextEdit.
I would be very grateful if someone can suggest a way for this.
Many thanks,
Anja
Bookmarks