Hi all,
not sure where to post this, so I'll put it in the Newbie-Section.

I'm currently stuck at a general software layout without a clue about the best way to handle this:
What I got is a QWorkspace inside the MainWindow and a QDockWidget displaying user names. If a user is clicked, a separate Widget is opened in the Workspace, displaying a loading-screen and an icon in front of the User shows the state 'Loading'. So far, so good...
What I try to achieve is, if the loading screen is displayed, a corresponding logfile is opened and transferred into a QTableView with a SortProxyModel. The filesize can be up to 100 Mb, maybe more. After processing, the Icon shows the state 'Opened'. In theory, all users could be processed simultaneously. That is, where my problem arises.

I tried to put processing in a Qthread, that has the Widget with the loading screen as its parent. If I close the loading-screen, end the thread with exit() and catch finished() to set the state back to 'Closed', the thread my be processed on and after reset sets the state to 'Opened' again. I don't like the idea of using terminate() because of locked mutexes and opened file-handles. Furthermore, a wait()-call blocks the whole GUI (and so the other opened userfiles).

another idea would be, to put the displaying widget also in a thread, but then...is it possible to put the contained TableView to the workspace with addWindow?

I'm a bit lost, how to best design these two processes. Maybe someone can give me a hint, how to start on this problem.

Thanks in Advance,
Daedalus