It is not safe to use pixmaps outside the GUI thread (but I'm in the GUI thread)
Hello,
Si I'm having this issue where Qt complains about with the following:
QPixmap: It is not safe to use pixmaps outside the GUI thread
But I'm doing moveToThread(QApplication::instance()->thread()), and re-checking using the method currentThreadId() whether the move when as expected and it seems to be in the correct thread, and yet it complains.
Also, the object is already in the GUI thread (if I don't use the moveToThread, the Ids are the same).
What could be causing this? Is comparing this->thread()->currentThreadId() == QApplication::instance()->thread()->currentThreadId() not the best way of checking this?
Re: It is not safe to use pixmaps outside the GUI thread (but I'm in the GUI thread)
Hard to say without seeing the code.
Re: It is not safe to use pixmaps outside the GUI thread (but I'm in the GUI thread)
Re: It is not safe to use pixmaps outside the GUI thread (but I'm in the GUI thread)
Re: It is not safe to use pixmaps outside the GUI thread (but I'm in the GUI thread)
Re: It is not safe to use pixmaps outside the GUI thread (but I'm in the GUI thread)
Hmmm.... I suggest you cut the minimum of your project and paste it here. I really do not feel like jumping around files of your project.