jamvm -Dawt.toolkit=gnu.java.awt.peer.qt test
QPixmap: It is not safe to use pixmaps outside the GUI thread
I'm new to Qt, I don't know how to deal with it.
jamvm -Dawt.toolkit=gnu.java.awt.peer.qt test
QPixmap: It is not safe to use pixmaps outside the GUI thread
I'm new to Qt, I don't know how to deal with it.
Caleb Huitt - cjhuitt
On
Since QPixmap is a device-dependent representation, and many display drivers and systems aren't thread-safe, QPixmap is restricted to only being used in the main or GUI thread, which is the same thread your QApplication object should be instantiated in. You can see a brief bit in the documentation here, and read more information about it in this discussion thread.
Copyright © 2021 Jogjafile Inc.
I have no experience whatsoever with the jamvm, but here's the Qt doc quote that might be helpful:
Try using QImage instead of QPixmap and see if there is the same warning/error message.