How can I minimize my application by clicking on some button in the application, on Windows Mobile and Symbian platforms, under Qt?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Probably QWidget::setWindowState will suit you and the state for minimized is Qt::WindowMinimized
.. So if your base widget is a QMainWindow
, you can use this function on it.
It will work for desktop applications.. Should be similar for Mobile apps though..
Hope it helps...
回答2:
For a QWidget which is a Window you can use the ShowMinimized
function.