View Full Version : How to disable maximum event in QWidget??
hesummar
28th October 2006, 04:25
Hello,everyone . Help me please . How to disable maximum event in QWidget? Thank you !
jpn
28th October 2006, 08:39
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).
hesummar
28th October 2006, 13:21
Thank you very much! jpn..
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.