Results 1 to 4 of 4

Thread: Clearing of data in TextEdit

  1. #1
    Join Date
    Dec 2006
    Posts
    7
    Qt products
    Qt3

    Post Clearing of data in TextEdit

    I am trying to load and clear 4MB of the data in TextEdit. It takes lot of time... Am thinking of using Buffer but dont know how to use it properly. any alternate suggestion is welcome.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Clearing of data in TextEdit

    The only alternative is not to use Qt3's QTextEdit. It's quite slow for big amounts of text.

  3. #3
    Join Date
    Dec 2006
    Posts
    7
    Qt products
    Qt3

    Default Re: Clearing of data in TextEdit

    Quote Originally Posted by wysota View Post
    The only alternative is not to use Qt3's QTextEdit. It's quite slow for big amounts of text.
    I know that sir.. can u suggest me which control should be used or any other mechanism which would be helpful in solving this issue??

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Clearing of data in TextEdit

    First of all you can try dividing the text into chunks and display only a single chunk (even using a QTextEdit). Alternatively you may try QScintilla, maybe it does a better job (I haven't used it, so I don't know). The best thing to do though would be to switch to Qt4 and use its document approach

Similar Threads

  1. Sql Server cannot retrieve data from select
    By Atomino in forum Qt Programming
    Replies: 10
    Last Post: 7th September 2006, 16:37
  2. speed of setdata - lots of items in treeview
    By Big Duck in forum Qt Programming
    Replies: 4
    Last Post: 6th July 2006, 12:53
  3. visible text of textedit
    By regix in forum Qt Programming
    Replies: 3
    Last Post: 26th June 2006, 09:02
  4. How to convert binary data to hexadecimal data
    By yellowmat in forum Newbie
    Replies: 4
    Last Post: 8th March 2006, 16:17
  5. Replies: 16
    Last Post: 7th March 2006, 15:57

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.