Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Minimizing a Qt application

Tags:

qt

qt4

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

like image 886
Sergey Avatar asked Aug 30 '10 09:08

Sergey


People also ask

How do I minimize a window in Qt?

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

How big is Qt library?

The file is very large, almost 1 GB in size. Once you have downloaded the Qt Creator installer .exe file, double-click it to run it, which will install Qt Creator on your computer. You can choose all default options during the installation.


1 Answers

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

like image 137
liaK Avatar answered Oct 07 '22 23:10

liaK