Results 1 to 3 of 3

Thread: QTextEdit is possible collapse text?

  1. #1
    Join Date
    Jul 2006
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default QTextEdit is possible collapse text?

    Hi, first -=sorry for my english=-
    it is possible to relize collapsed text in "QTextEdit" i need to hide/unhide some text like "Kdevelop editor" and how can add line number?
    all my attempt are fail.
    if you have some links, tutorial or if the question is in another thread...

    thanks to all

    Sorry my english is too bad

    -=angel75=-

  2. #2
    Join Date
    Jan 2006
    Location
    travelling
    Posts
    1,116
    Thanks
    8
    Thanked 127 Times in 121 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QTextEdit is possible collapse text?

    Quote Originally Posted by angel75
    it is possible to relize collapsed text in "QTextEdit" i need to hide/unhide some text like "Kdevelop editor" and how can add line number?
    all my attempt are fail.
    if you have some links, tutorial or if the question is in another thread...
    This topic has been discussed a lot when I started the developpment of the now defunct DevQt. You should find the thread using the search function of QtCentre and typing something like "text editor with line numbers".

    I myself have written such a widget for my IDE project (BTW version 0.4.2 of Edyuk is out. Get it on Sourceforge ! ) and pasnox, author of Monkey Studio, aka Qt4DS, as also writen one. These sources being released under GPL you won't have any problem to adapt them to your needs.

    The text folding is a little more complicated because it is a low-level interaction with the data of the document being displayed by your editor. Townk has made a little editor that allowed text folding but it was a little buggy with nested folding and I don't know if he progressed. For more information check out member list and try to contact him.

    Quote Originally Posted by angel75
    Sorry my english is too bad
    Believe me it will improve a great deal if you stay on this board and speak every time you have something to say...
    Current Qt projects : QCodeEdit, RotiDeCode

  3. #3
    Join Date
    Jul 2006
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QTextEdit is possible collapse text?

    thanks FullMetalcoder

    for line numberi have solved i found a lot of example in this forum thanks
    now i search how to hide/unhide text.

    Thanks
    this forum is cool

Similar Threads

  1. visible text of textedit
    By regix in forum Qt Programming
    Replies: 3
    Last Post: 26th June 2006, 09:02
  2. How to get text of last line only in QTextEdit?
    By rajesh in forum Qt Programming
    Replies: 2
    Last Post: 12th June 2006, 13:37
  3. QTextEdit API questions (plain text)
    By Gaspar in forum Qt Programming
    Replies: 4
    Last Post: 16th May 2006, 06:03
  4. coordinates of selected text in QTextEdit
    By sreedhar in forum Qt Programming
    Replies: 1
    Last Post: 15th May 2006, 17:22
  5. Problem with inserting text into QTextEdit
    By xorrr in forum Qt Programming
    Replies: 0
    Last Post: 6th February 2006, 11: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.