I'm developing a text editor which shows pages in LibreOffice's manner (e.g. on solid background with space between pages).
So, there is one sample of QTextDocument and several samples of QTextEdit (depending on page count) scrolled to certain page with QTextEdit::verticalScrollBar()->setValue(int). I place each QTextEdit on QGraphicsScene with QGraphicsProxyWidget.
Is that manner of QTextDocument handling redundant? Is there way to place one QTextEdit on several QGraphicsProxyWidgets (one page on each proxy widget)? E.g. if document has one page then one proxy widget occurs, if it has two pages then QTextEdit gets longer instead of scrolling and second page's content appears on second page and so on. Or my solution is only way due to limitations that Qt makes?
I have found this post but due to expiring of source code attached in one of its replies I can't be sure that this is definitely that I need.
Bookmarks