Results 1 to 8 of 8

Thread: Split single QTextEdit into several QGraphicsProxyWidget

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2015
    Posts
    22
    Thanks
    23
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Split single QTextEdit into several QGraphicsProxyWidget

    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.
    Last edited by Toniy; 6th March 2017 at 15:11.

Similar Threads

  1. Replies: 7
    Last Post: 6th February 2017, 19:10
  2. [QTextEdit] Delete single lines
    By bmn in forum Qt Programming
    Replies: 3
    Last Post: 18th July 2012, 16:57
  3. split QByteArray
    By xproch13 in forum Newbie
    Replies: 2
    Last Post: 29th October 2010, 21:50
  4. Single line QTextEdit
    By Arthur in forum Qt Programming
    Replies: 1
    Last Post: 30th August 2010, 21:04
  5. how to split a class ?
    By mimmo_kallon in forum Newbie
    Replies: 0
    Last Post: 8th April 2008, 11:37

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.