简体   繁体   English

如何使Qt应用程序没有主窗口和ocassional对话框?

[英]How to make Qt application with no main window and ocassional dialogs?

How to implement a Qt application reading from stdin, printing to stdout and stderr, and having no main window. 如何实现从stdin读取的Qt应用程序,打印到stdout和stderr,并且没有主窗口。 But at some times it would display an interactive dialog in a separate thread? 但有时它会在一个单独的线程中显示一个交互式对话框?

The dialogs have to go in the main thread, period. 对话框必须进入主线程,句点。

However, nothing is stopping you from using stdin/stdout in the meantime. 但是,在此期间没有什么能阻止你使用stdin / stdout。 Also, if you have concerns with blocking, do the stdio read/write in a separate thread. 此外,如果您担心阻塞,请在单独的线程中执行stdio读/写操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM