Quantcast
Channel: Jobs
Viewing all articles
Browse latest Browse all 18427

Prevent minimize window when click Show Desktop

$
0
0
I have tried to make a window that continue show up after Show Desktop clicked. I have tried overload changeEvent function: void mainwindow::changeEvent(QEvent *event) {     if(event->type()==QEvent::WindowStateChange)     {         event->accept();         showNormal();         raise();     }     else         QWidget::changeEvent(event); } But this doesnt work So, how can I do that?

Viewing all articles
Browse latest Browse all 18427

Trending Articles