Qt: Is there notification when event loop starts?

前端 未结 3 2010
一向
一向 2021-02-19 00:19

I have a Qt application with this kind of main()...

int main(int argc, char *argv[])
{
    QApplication app(argc, argv);
    MainWindow   mainWin;

    ... A sep         


        
3条回答
  •  天涯浪人
    2021-02-19 00:34

    Since emitted signals don't get lost when the event loop is not yet running, your thread may not necessarily need to know when your window is ready.
    Your thread could start sending signals to the window right away but it will only receive signals from the window when the event loop is running.

提交回复
热议问题