Results 1 to 4 of 4

Thread: Application starting slowly.

  1. #1
    Join Date
    Sep 2008
    Posts
    84
    Thanks
    28
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Application starting slowly.

    hiii,

    I have made an application which working fine ,but when you run the application it takes 15-20 sec to start up and come on the screen.

    Pls someone give the solution.

    Thanks in advanced.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Application starting slowly.

    It depends what the application does. If it uses QDirModel, the model can take time to initialize itself and you might want to replace it with QFileSystemModel which will initialize itself in the background. If you load and/or scale a lot of images when starting the application, it might take a lot of time as well. Your question is very generic so without more information there is not much we can do to help you.

  3. #3
    Join Date
    Sep 2008
    Posts
    84
    Thanks
    28
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Application starting slowly.

    hi.
    i'm creating 15 new classes as given below in the mainwindow.
    Is this the problem which is making application slow to start?

    Class1 = new c_1(this);
    Class2 = new c_2(this);
    :
    :
    :
    Class15 = new c_15(this);

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Application starting slowly.

    It depends what the classes do It will be best if you run your application under profiler (like gprof or callgrind) and see what slows down your application most.

Similar Threads

  1. QSkinWindows Classes
    By kernel_panic in forum Qt-based Software
    Replies: 45
    Last Post: 20th April 2010, 13:35
  2. dll + application
    By fpujol in forum Qt Programming
    Replies: 11
    Last Post: 15th April 2007, 19:37
  3. Starting application in full screen
    By safknw in forum Qt Programming
    Replies: 3
    Last Post: 12th May 2006, 19:02
  4. Replies: 5
    Last Post: 24th April 2006, 16: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.