Results 1 to 3 of 3

Thread: Slow Program Startup

  1. #1
    Join Date
    Jan 2011
    Posts
    19
    Qt products
    Qt4
    Platforms
    Windows

    Default Slow Program Startup

    I'm using Qt 4.7.4, Qt Creator 2.4.1

    Very simple programs, such as the QTextEdit tutorial, take around 40 seconds for the program to appear. When the program appears, it funs fine and is not slow at all. It just takes a long time for the program to appear once I press the "Run" button. Any ideas on what is up with this and how to fix it?

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Slow Program Startup

    If you are running a debug program then the libraries are quite large and take a while to load especially on memory constrained systems. If you are running the program in the debugger then it will take even longer. If you previously have not compiled the program then pressing Run will also compile and link the program.

  3. #3
    Join Date
    Jan 2011
    Posts
    19
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Slow Program Startup

    This is my second time reinstalling Qt. I remember running this exact tutorial program before but program appearance from the time of hitting the run button was a second or less. Why is it taking so long now?

    Also, when I hit the debugger, it says "the preferred debugger engine for debugging binaries of type 'x86-windows-msvc2010-pe-32bit' is not available. The debugger engine 'Gdb engine' will be used as a fallback. Details: There is no CDB binary available for binaries in format 'x86-windows-msvc2010-pe-32bit'"

    Last time I installed the SDK, I remember having the choice of downloading the GNU licensed version and remember that in the Project settings, the mingw compiler was being used. Now, I see it says, "Microsoft Visual C++ Compiler 10.0 (x86)". Does this have anything to do with the slow down?


    Added after 1 37 minutes:


    I just installed Qt on my laptop. Ran a sample program. When pressing the Run button the program starts immediately. What gives? Slow on my desktop but fast on my laptop?
    Last edited by Plissken; 6th May 2012 at 10:08.

Similar Threads

  1. Very slow startup by the first run
    By denizlitr in forum Qt for Embedded and Mobile
    Replies: 14
    Last Post: 2nd November 2016, 07:30
  2. Problem for slow operations in Qt program
    By maxoreli in forum Qt Programming
    Replies: 2
    Last Post: 16th June 2011, 13:45
  3. (GUI) how to run code on program startup
    By qtierer in forum Qt Programming
    Replies: 2
    Last Post: 9th May 2011, 19:15
  4. Slow FTP Program using QFtp
    By neveffects in forum Qt Programming
    Replies: 3
    Last Post: 7th January 2011, 06:19
  5. How to resize a QDockWidget when startup the program?
    By heavenstar_x in forum Qt Programming
    Replies: 6
    Last Post: 26th October 2007, 12:58

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.