我现在正在编程Java一段时间......现在我进入了C++和Qt,我对GUI线程(EDT线程)和工作线程有点迷失 我试图让我的应用程序的主窗口只在配置窗口关闭时打开。 我不想把用于创建主窗口的代码放在我的配置窗口的确定按钮中。 我试图让他们模态,但主窗口仍然打开..... Afther配置完成我仍然有看看是否有应用程序更新...所以它的东西就像Qt在第一个关闭时打开另一个窗口
编辑:这是我的主:
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()中? – Anthony 2012-04-12 02:10:59
是的,我的主... sry – fredcrs 2012-04-12 02:43:19