Results 1 to 2 of 2

Thread: Programming practises for QT- load balancing/performance

  1. #1
    Join Date
    Jun 2009
    Posts
    8
    Qt products
    Qt4
    Platforms
    Windows

    Default Programming practises for QT- load balancing/performance

    Hi all,

    Let's say I am building a large QT application (I think there are at least 5 distinct modules, with each module having 2 to 3 property browser and a toolbar, plus about three or four more dialog boxes), what is the best way to go about achieving good performance?

    1. Create and initialise all modules (each is basically a QWidget which I add to a tab) at start up

    OR

    2. Only create the widget the module is invoked, and destroy it (de-reference it?) when the module is closed

    Is there any need to do such things, or is QT handling this under the hood?

  2. #2
    Join Date
    Jan 2006
    Location
    Alingsås, Sweden
    Posts
    437
    Thanks
    3
    Thanked 39 Times in 39 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Programming practises for QT- load balancing/performance

    Creating and deleting stuff takes time, so if you can keep them, that would increase speed, but at the cost of memory. It is the classical computer science trade-off - memory vs cpu cycles.

Similar Threads

  1. QPluginLoader doesn't load plugin
    By BeS in forum Qt Programming
    Replies: 6
    Last Post: 26th November 2008, 19:12
  2. Program not compiling on Fresh install of Leopard
    By dvmorris in forum Qt Programming
    Replies: 1
    Last Post: 22nd November 2007, 10:22
  3. QT COM Programming
    By sarav in forum Newbie
    Replies: 5
    Last Post: 24th February 2007, 13:41
  4. Using QGraphicsView with model/view programming
    By JLP in forum Qt Programming
    Replies: 3
    Last Post: 29th January 2007, 11:04

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.