Minimizing a Qt application

2019-02-21 09:03发布

How can I minimize my application by clicking on some button in the application, on Windows Mobile and Symbian platforms, under Qt?

标签: qt qt4
2条回答
\"骚年 ilove
2楼-- · 2019-02-21 09:40

For a QWidget which is a Window you can use the ShowMinimized function.

查看更多
你好瞎i
3楼-- · 2019-02-21 09:48

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...

查看更多
登录 后发表回答