Skip to content
Advertisement

Solution for : QCoreApplication::exec: The event loop is already running [closed]

So, I am a complete beginner in Python. This is my first ever application in this. I have these several files of Python classes. Using PyQT5 to make a desktop GUI object tracking app. When I am calling them from one another this error shows up.

QCoreApplication::exec: The event loop is already running

main.py

JavaScript

trackerProcess.py

JavaScript

main_design.py

JavaScript

VideoPlayer.py

JavaScript

Please someone give a proper solution. I am tired of searching for a loophole in the code. Any advice is invited. Thank you.

Advertisement

Answer

Okay, so I refactored my code and made them appear in fewer files. Tried to call app.exec_() in one main file only. Finally the error is gone!

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement