Results 1 to 3 of 3

Thread: A gui made with QTdesigner is faster-better or slower-worse than a GUI build in code?

  1. #1
    Join Date
    Sep 2010
    Posts
    654
    Thanks
    56
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default A gui made with QTdesigner is faster-better or slower-worse than a GUI build in code?

    I see that there is two ways to build a GUI, using QTdesigner (that maje a .ui file) and by 'hand'.
    And I ask myself if there is a better way, thinking in time to compile, size of exe, performance of the program, etc.
    Any idea ?

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

    Default Re: A gui made with QTdesigner is faster-better or slower-worse than a GUI build in c

    I believe it's just personal preference. Sure, you can type in the code yourself, but I don't think there's much difference either way. Since uic generates C++ code anyway, you can examine it and see the difference to how you would do it and then choose your path.

  3. #3
    Join Date
    Apr 2010
    Posts
    769
    Thanks
    1
    Thanked 94 Times in 86 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: A gui made with QTdesigner is faster-better or slower-worse than a GUI build in c

    In most cases, it is much faster in terms of development time to use the Designer for layout. It is also much less error-prone and much easier to maintain over long periods of time.

    It is also a lot more fun, because layout coding by hand is pure, repetetive drudgery.

    I haven't noticed any significant difference in code complexity that would lead to longer compilation times. It would take years, on the order of decades, for the compile time delta to outweigh the development time saved. In terms of runtime performance, you'll see no difference at all in terms of actual use; I suppose you could detect any small differences in a profiler, but the time it would take to perform such a measurement would be several orders of magnitude greater than the difference itself.

    I'd only worry about such issues once a problem actually arises in real-world use, at which point you could profitably deploy a suite of analysis tools to track down the source of the problem. Until such a thing happened, though, I'd focus my concerns and efforts on producing good, maintainable code in the parts that have to be written by hand.

Similar Threads

  1. WebKit MUCH faster on Linux with same code
    By Guilo in forum Qt Programming
    Replies: 2
    Last Post: 21st June 2011, 19:42
  2. How to code an App that will build QT projects
    By locke in forum Qt Programming
    Replies: 12
    Last Post: 24th August 2010, 12:48
  3. Replies: 0
    Last Post: 1st August 2009, 08:05
  4. Faster code possible?
    By ShaChris23 in forum General Programming
    Replies: 1
    Last Post: 28th May 2008, 07:35
  5. build code using vs 2005
    By arunredi in forum Installation and Deployment
    Replies: 3
    Last Post: 14th May 2008, 18:42

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.