QDesktopWidget and windows taskbar

596 views Asked by At

I need to have app running in fullscreen mode.

For that I used QDesktopWidget. When windows taskbar is lock it work fine.

Problems start when taskbar is in auto-hide mode. I cannot find any way to receive information (signal), that taskbar size on desktop changed, so I cannot react and change my widget size.

Is there any way to obtain information that windows taskbar changing from hidden to visible or opposite?

I would be glad about any hints. Marek

1

There are 1 answers

2
Nejat On

I don't know why you use QDesktopWidget for running in fullscreen mode! You can simply set your MainWindow state to fullscreen by :

this->setWindowState(Qt::WindowFullScreen);