开发者

Minimizing a Qt application

开发者 https://www.devze.com 2023-01-14 08:43 出处:网络
How can I mi开发者_开发技巧nimize my application by clicking on some button in the application, on Windows Mobile and Symbian platforms, under Qt?Probably QWidget::setWindowState will suit you and the

How can I mi开发者_开发技巧nimize my application by clicking on some button in the application, on Windows Mobile and Symbian platforms, under Qt?


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


For a QWidget which is a Window you can use the QWidget::showMinimized method.

0

精彩评论

暂无评论...
验证码 换一张
取 消