【发布时间】:2012-04-12 02:05:42
【问题描述】:
我现在对 Java 编程已经有一段时间了……现在我接触了 C++ 和 Qt,我对 GUI 线程(EDT 线程)和工作线程有点迷茫 我试图仅在配置窗口关闭时才打开应用程序的主窗口。 我不想将用于创建主窗口的代码放在我的配置窗口的 OK 按钮中。 我试图使它们成为模态,但主窗口仍然打开..... 配置完成后,我仍然需要查看是否有应用程序更新......所以它类似于
编辑:这是我的主要内容:
ConfigurationWindow *cw = new ConfigurationWindow();
//if there is no text file - configuration
cw->show();
//**I need to stop here until user fills the configuration
MainWindow *mw = new MainWindow();
ApplicationUpdateThread *t = new ApplicationUpdateThread();
//connect app update thread with main window and starts it
mw->show();
【问题讨论】:
-
您是专门指应用程序的启动吗?另外,您将发布的代码放在哪里?在 main() 中?
标签: c++ multithreading qt window