eijan.github.io

system

在QT中执行命令,如shutdown:

不能在线程中执行,要在主线程中执行。

shutdown -h now