Hello,
I have to one issue in Qt3-based Kexi "printouts" plugin.
The printouts look like this http://kexi-project.org/pics/1.1.3/printing_images.png
The problem is that when you have, say, "Description" field filled with really large text that cannot fit on a single page, I need to somewhat split the text between pages.
Things taht internally deal with wordwrapping in Qt3, e.g. QTextCursor is private here. I also do not use 3rdparty replacement like kotext in this plugin.
Summing up, what I would like to have is a function like:
Qt Code:
uint numberOfCharactersThatCanFitInARectangle(const QRect7 rect, const QString& text);To copy to clipboard, switch view to plain text mode
I could then paint first N characters on a QPainter and then go to another page and repeat the whole routine for the remaining text.
Thanks in advance,
Jaroslaw Staniek
Bookmarks