Results 1 to 4 of 4

Thread: bug: setLineWrapMode

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2007
    Location
    Philadelphia, USA
    Posts
    255
    Thanks
    43
    Thanked 21 Times in 21 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default bug: setLineWrapMode

    I am using Qt 4.3.0 on Windows

    There seems to be a serious problem with QTextEdit when using
    Qt Code:
    1. setLineWrapMode(QTextEdit::NoWrap)
    To copy to clipboard, switch view to plain text mode 

    The problem is that when typing toward the bottom of a moderately large text file, the interface starts dragging and becomes very slow - the difference is striking between the top and bottom of the document, and I think it gets worse for larger files.

    If I remove the "setLineWrapMode" line, then everything works fine.

    For a long time, I blamed it on my syntax highlighter, but now I'm quite certain that it's a Qt bug... Anyone encounter this kind of behaviour, or have an idea for a workaround?

    Not sure if it's 4.3.0-specific, Windows-specific (or even my-particular-computer-specific )

    Thanks.

    edit: Here's a sample program that produces the behaviour:

    Qt Code:
    1. #include <QApplication>
    2. #include <QTextEdit>
    3.  
    4. int main(int argc, char *argv[]) {
    5. QApplication app(argc, argv);
    6.  
    7. QTextEdit edit;
    8.  
    9. edit.setLineWrapMode(QTextEdit::NoWrap);
    10. edit.showNormal();
    11.  
    12. bool ret=app.exec();
    13. return ret;
    14. }
    To copy to clipboard, switch view to plain text mode 
    Last edited by magland; 23rd July 2007 at 20:36.

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
  •  
Qt is a trademark of The Qt Company.