Re: [Interest] running Qt main event loop in secondary thread

2023-03-27 Thread Thiago Macieira
On Monday, 27 March 2023 13:23:02 PDT Stefan Seefeld wrote: > Hello, > > I'm working on some Python tests that interact with a Qt application. I > would like to run the application's event loop in a secondary thread, so > the primary thread can perform the test itself. > > I read in the past that

Re: [Interest] running Qt main event loop in secondary thread

2023-03-27 Thread Frank Mertens
Hi Stefan, check out the excellent QThread API docs for the correct patterns for interacting between UI and worker threads. I don't think that it really matters which thread is your "main" thread. Surely you have to call Q*Application::exec() in one distinct thread and you definitely can have o

[Interest] running Qt main event loop in secondary thread

2023-03-27 Thread Stefan Seefeld
Hello, I'm working on some Python tests that interact with a Qt application. I would like to run the application's event loop in a secondary thread, so the primary thread can perform the test itself. I read in the past that such a use-case wasn't supported by Qt, but I can't find that information