PDA

View Full Version : Application starting slowly.



aj2903
30th December 2008, 09:45
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.

wysota
30th December 2008, 09:53
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.

aj2903
30th December 2008, 10:54
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);

wysota
30th December 2008, 11:19
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.