Strange freeze in QFileSystemBrowser
Hi,
I've developed an application in which I have 2 Tree Views (left and right) and I copy system files from one tree to another. The two tree views have QFileSystemModel as a model.
My problem is that sometimes this copy operation causes a freeze in Qt (about 10 seconds during which the application becomes unresponsive). Here is the stack I get in the thread that freezes:
0: __kernel_vsyscall
1: pthread_cond_wait@glib
2: QWaitCondition::wait()
3: QFileInfoGatherer::run()
4: QThreadPrivate::start()
5: start_thread
6: clone
My issue is on Linux. Does someone have a clue why this freeze happens?
Many thanks,
Alex
Re: Strange freeze in QFileSystemBrowser
It seems the model tries to update itself and while doing so it has to put the thread trying to access the model on hold.