Results 1 to 3 of 3

Thread: Qt Application is slow

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2009
    Posts
    36
    Qt products
    Qt3 Qt4
    Platforms
    Windows
    Thanks
    6
    Thanked 1 Time in 1 Post

    Default Qt Application is slow

    Hi all ,


    I am inserting data in TableWidget. In every sec almost 500 words insert in table and at runtime it create and delete row.

    Its works fine in Windows but In Linux OS it is slow.



    Can Anyone tell me that

    How can I Increase the efficiency of the code?
    Is this the reason that application is slow due to inserting data in table?

  2. #2
    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: Qt Application is slow

    If you insert them one by one then yes, that's the reason for it being slow. Either disable updates to the widget while inserting data or switch to a model based approach and insert more than one item at a time.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    6
    Thanked 348 Times in 333 Posts

    Default Re: Qt Application is slow

    I must agree with wysota, you need to use a model based approach instead. For me it still gets pretty slow, but only after a million records or so.

Similar Threads

  1. Replies: 1
    Last Post: 8th November 2009, 12:49
  2. QT3 application is not running on ARM Board
    By soumya in forum Qt for Embedded and Mobile
    Replies: 16
    Last Post: 20th July 2009, 10:13
  3. Deploying Qt 4.5.1 Application on RHEL 5.. Pls Help
    By swamyonline in forum Installation and Deployment
    Replies: 0
    Last Post: 28th June 2009, 11:43
  4. dll + application
    By fpujol in forum Qt Programming
    Replies: 11
    Last Post: 15th April 2007, 18:37

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.