Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QApplication init very slow
Qt 6.11 is out! See what's new in the release blog

QApplication init very slow

Scheduled Pinned Locked Moved General and Desktop
9 Posts 3 Posters 3.2k 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.
  • H Offline
    H Offline
    huajin
    wrote on last edited by
    #1

    my software startup is very slow, and i found QApplication init is very slow.
    how can i upgrade the startup speed??

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Make sure you are using newest Qt version available. QApplication init was slow in Qt 5.0 and Qt 5.1, it has been fixed in Qt 5.2.

      (Z(:^

      1 Reply Last reply
      0
      • H Offline
        H Offline
        huajin
        wrote on last edited by
        #3

        yes, i am ture it is qt5.2 + mingw32, but my software run in CD. when the cd put into computer, statup my software first, it is very slow, about 1-2 m. next times it is very quickly about 1-2 sec. i donot know how to do??can you help me

        1 Reply Last reply
        0
        • H Offline
          H Offline
          huajin
          wrote on last edited by
          #4

          i am waiting online. it is very important for me.
          [quote author="sierdzio" date="1390742972"]Make sure you are using newest Qt version available. QApplication init was slow in Qt 5.0 and Qt 5.1, it has been fixed in Qt 5.2.[/quote]

          1 Reply Last reply
          0
          • sierdzioS Offline
            sierdzioS Offline
            sierdzio
            Moderators
            wrote on last edited by
            #5

            Your OS needs do load the DLLs before it can start the application, I suspect that is the problem. There is little you can do about it, apart from maybe using a faster CD drive.

            I might be wrong, though, there may be some nice solution waiting for you. I just don't know it :)

            (Z(:^

            1 Reply Last reply
            0
            • JKSHJ Offline
              JKSHJ Offline
              JKSH
              Moderators
              wrote on last edited by
              #6

              Hi,

              Here is a way to check if your CD player is the problem: Copy everything from your CD into a folder on your desktop. Run your program from this folder.

              Is it much faster than running from the CD?

              Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

              1 Reply Last reply
              0
              • H Offline
                H Offline
                huajin
                wrote on last edited by
                #7

                i have tried.

                Run my program on desktop, it is very fast....

                i write a test program, just only display a button, copy it to CD and run it, it also very slow.

                so i think QApplication init is result.

                Test program like this:

                QApplication a(argv, argc);
                QPushButton btn("test");
                btn.show();
                a.exec();

                [quote author="JKSH" date="1390835206"]Hi,

                Here is a way to check if your CD player is the problem: Copy everything from your CD into a folder on your desktop. Run your program from this folder.

                Is it much faster than running from the CD?[/quote]

                1 Reply Last reply
                0
                • JKSHJ Offline
                  JKSHJ Offline
                  JKSH
                  Moderators
                  wrote on last edited by
                  #8

                  [quote author="huajin" date="1390835541"]Run my program on desktop, it is very fast....

                  i write a test program, just only display a button, copy it to CD and run it, it also very slow.[/quote]Then QApplication init is fast, but your CD drive is slow.

                  Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                  1 Reply Last reply
                  0
                  • H Offline
                    H Offline
                    huajin
                    wrote on last edited by
                    #9

                    my CD drive is fast.

                    i copy some VB and MFC program to CD and run it, it very fast...

                    [quote author="JKSH" date="1390835838"][quote author="huajin" date="1390835541"]Run my program on desktop, it is very fast....

                    i write a test program, just only display a button, copy it to CD and run it, it also very slow.[/quote]Then QApplication init is fast, but your CD drive is slow.[/quote]

                    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