Results 1 to 2 of 2

Thread: folding a text

  1. #1
    Join Date
    May 2010
    Posts
    30
    Qt products
    Qt4

    Default folding a text

    Hello,

    I'd like to be able to hide a part of a text in a QplainTextEdit window.
    For example, I'd like to be able to hide a comment block in a C function, with a "-" on the left of the text, which will then become a "+".
    How could I do that ?
    Thanks.

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

Similar Threads

  1. Replies: 3
    Last Post: 3rd May 2009, 08:58
  2. QLable::setText(text) is not showing the Text
    By ranna in forum Qt Programming
    Replies: 4
    Last Post: 14th November 2008, 09:39
  3. Replies: 1
    Last Post: 3rd September 2008, 14:16
  4. Qt class showing text area/text edit
    By maverick_pol in forum Qt Programming
    Replies: 4
    Last Post: 21st August 2008, 12:15
  5. QTextEdit + paste rich text as plain text only
    By Yong in forum Qt Programming
    Replies: 2
    Last Post: 6th February 2008, 16:45

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.