Hello,everyone . Help me please . How to disable maximum event in QWidget? Thank you !
Hello,everyone . Help me please . How to disable maximum event in QWidget? Thank you !
You can use QWidget::setWindowFlags() to remove the maximize button (Qt::WindowMaximizeButtonHint).
If you really want to get your hands on the actual maximize event, override QWidget::changeEvent() and catch QEvent::WindowStateChange (or alternatively use an event filter).
J-P Nurmi
Thank you very much! jpn..
Bookmarks