![]() The Qt docs will tell you which parts of their API are guaranteed to be so, and under what circumstances.Ĭross-thread signals are thread-safe, so calling the updatePB method in your example is okay. PyQt is thread-safe to the same extent that Qt is thread-safe. ![]() Is that wrong? In the same way, I emit events from serialThread and I connected them to the GUI, but that never gave me problems.Ĭan you see the mistake I made? Is there a way to debug the code if there is a crash without other infos? (I use P圜harm 2017.1.3). ![]() My idea (maybe wrong) is that all serialThread methods are executed on the same thread, also if they are connected to a gui (main thread). I know that PyQt is not thread-safe and that a wrong handling of variables gives crashes of my type, but I can't understand what is wrong with my code. I have crashes when I read/write serialEnabled in run() or in ConnDisconn(). I'm using QThread, and I wrote a system like this: class serialThreadC(QThread): I'm trying to develop a software with PyQt, but I often get stuck on software crashes without debug information (only the exit code 0xC0000409).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |