QT程序运行时增加-qws

在嵌入式QT版本中,程序需要服务器或自己作为服务器程序。服务器程序构造的方法是构造一个QApplication::GuiServe类型的QApplication对象。或者使用-qws命令选项启动程序。
如果在运行时,不加-qws,会报错如下

No Qt for Embedded Linux server appears to be running.
If you want to run this program as a server,
add the "-qws" command-line option.

猜你喜欢

转载自blog.csdn.net/stm32_newlearner/article/details/85011486