Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Program Startup takes a long time.
Qt 6.11 is out! See what's new in the release blog

Program Startup takes a long time.

Scheduled Pinned Locked Moved Qt Creator and other tools
5 Posts 3 Posters 3.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Plissken
    wrote on last edited by
    #1

    I'm following the tutorial ( http://qt-project.org/doc/qt-4.8/gettingstartedqt.html ) but it takes 40 seconds for the program to appear when I hit run. Why is it taking so long?

    (btw...are the tutorials ever going to be updated? There are still mistakes in it and also small changes, for example main using char *argv[] instead of char **args)

    Does this have anything to do with the build using MSVC compiler? If so, what happened to the gnu one? I see no option for it.

    1 Reply Last reply
    0
    • D Offline
      D Offline
      DerManu
      wrote on last edited by
      #2

      Is the qmake;make step taking so long (i.e. building/compiling the application) or is actually the application startup taking so long?
      What's your code and your system specs?

      1 Reply Last reply
      0
      • ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #3

        How are you trying to start the application? If you start from withing Qt Creator, do those 40s include the building of the application? What OS/hardware are you running on?

        What is wrong wrt. argv and args?

        1 Reply Last reply
        0
        • P Offline
          P Offline
          Plissken
          wrote on last edited by
          #4

          It was the actual startup of the application that was taking so long. Building was quick. I uninstalled Qt and reinstalled, without messing with the options for installation and now the program shows up quickly.

          I wonder if messing with installation options the last time I installed caused something to go missing and that might have been what was slowing it down.

          1 Reply Last reply
          0
          • D Offline
            D Offline
            DerManu
            wrote on last edited by
            #5

            Do you remember what you changed in the last config exactly? It would be really interesting to know what caused this...

            (You didn't accidentally hit valgrind profiling instead of the normal run, did you? That causes this magnitude of slowdown.)

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved