[Qt-interest] Asynchronous loading?
Christopher Rasch-Olsen Raa
christopher at technophile.info
Tue Jul 14 09:21:02 CEST 2009
Hi,
I have an application that consist of a QTabWidget. Each of the tabs have a
widget that have to fetch a fair amount of data from an external database. At
the present time the program takes a lot of time to start because of all of
them getting stuff at the same time.
What I'd like to see happen is that the program first loads the data for the
active tab, and then proceeds to load data for the other "hidden" ones. Do you
have any pointers on how to implement this somewhat cleanly without blocking
the GUI?
Oh, and btw; at the present time the loading happens in the constructor of the
various widgets placed in the QTabWidget. It's no problem changing this.
--
Christopher
More information about the Qt-interest-old
mailing list