B
B
Bug2020-11-29 00:30:01
Python
Bug, 2020-11-29 00:30:01

How to run a separate code in exec in a pyqt5 program?

there is a program written using pyqt5, it has an entry button, when pressed, a completely different program should be opened that is sucked from the server, I decided to put it in exec, but in the program that is sucked from the server, threads and other classes other than the main one do not work.

and even after pressing the button in the console it is displayed

WARNING: QApplication was not created in the main() thread.
WARNING: QApplication was not created in the main() thread.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question