Results 1 to 3 of 3

Thread: QTextEdit extremely slow with links

  1. #1
    Join Date
    May 2006
    Location
    Waterloo, ON
    Posts
    9
    Thanks
    2
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default QTextEdit extremely slow with links

    I am trying to use a QTextEdit/QTextBrowser widget to display a tagged source file produced by Doxygen or Grok. Such files contain a large number of anchors and links. It seems that QTextEdit completely chokes on such data: a ~3000 line file with roughly this number of links and anchors takes ages to load and the widget is highly unresponsive.
    I have tried both Qt3 and Qt4, both display the same behaviour. I am using the setHtml() method to add the entire contents of the file at a single shot.
    Am I missing something or is QTextEdit simple inadequate?

    Elad

  2. #2
    Join Date
    Jan 2006
    Posts
    667
    Thanks
    10
    Thanked 80 Times in 74 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QTextEdit extremely slow with links

    I think Qt Assistant also uses QTextBrowser only and it loads pages pretty fast.

  3. #3
    Join Date
    May 2006
    Location
    Waterloo, ON
    Posts
    9
    Thanks
    2
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: QTextEdit extremely slow with links

    My sample application handles Qt documentation files (like the ones displayed by Qt assistant) quite easily. However, I believe that the number of links/anchors is considerably smaller (even in files such as "Qt Classes").

    Elad

Similar Threads

  1. QTextEdit API questions (plain text)
    By Gaspar in forum Qt Programming
    Replies: 4
    Last Post: 16th May 2006, 06:03

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.