Hi,
I stumbled over this thread: http://www.qtcentre.org/threads/3253...t-loading-data and it seems this problem is similar to mine. The solution proposed in this related thread does not help me much (because I don't know how it was implemented). But maybe I don't get some basic concept of Qt or graphical frameworks in general. How is it possible to load data in a separate thread so that the GUI does not block?
On one hand data that is loaded in a dedicated thread cannot be used in the main GUI-thread (Error: "QObject: Cannot create children for a parent that is in a different thread."). On the other hand I don't know how the main GUI-thread knows when (e. g. by initiating the widget to reload the model itself) and how (e. g. by setModel() with valid data from the same or a different thread) to use the new model.
Actually I just want to load vast amounts of data in a dedicated thread to display a "loading" picture or something similar until the data has become available so that the user knows what's going on.
Thanks for your help and best regards,
Rainer
Bookmarks