Results 1 to 5 of 5

Thread: QTextEdit slow to insert text

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2006
    Posts
    86
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    6
    Thanked 14 Times in 5 Posts

    Default Re: QTextEdit slow to insert text

    That was stupid of me. I was calling qApp->processEvents() everytime text was inserted. I was doing that back when I was stepping through my code and wanted to see the updated text immediately. Removed the call and now it flys ;p

    Paul

  2. #2
    Join Date
    Nov 2006
    Posts
    86
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    6
    Thanked 14 Times in 5 Posts

    Default Re: QTextEdit slow to insert text

    One related question. Is there a way to tell Qt to process GUI events for a specific widget? SO instead of saying qApp->processEvents() I could just do myWidget->processEvents() ??

    Paul

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

    Default Re: QTextEdit slow to insert text

    You can use QCoreApplication::sendPostedEvents() if you want.

Similar Threads

  1. Unhandled exception in qatomic
    By NewGuy in forum Qt Programming
    Replies: 14
    Last Post: 23rd July 2013, 10:49
  2. Problem pasting text into a QTextEdit
    By Spockmeat in forum Qt Programming
    Replies: 8
    Last Post: 14th March 2009, 15:36
  3. Replies: 3
    Last Post: 20th November 2007, 08:03
  4. QTextEdit API questions (plain text)
    By Gaspar in forum Qt Programming
    Replies: 4
    Last Post: 16th May 2006, 07:03
  5. Problem with inserting text into QTextEdit
    By xorrr in forum Qt Programming
    Replies: 0
    Last Post: 6th February 2006, 12: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
  •  
Qt is a trademark of The Qt Company.