How to disable the close button of window using Qt? -


i want disable close button on window (main application window) when operation starts user can't exit application , enable again when operation complete. how can in qt application? platform windows 7.

alternatively show message if user press close button , exiting application process running in background , abort closing application.

how can either?

if want disable button, can use next:

auto flags = windowflags();//save current configuration //your main configuration trick setwindowflags(qt::customizewindowhint | qt::windowtitlehint | qt::windowminmaxbuttonshint ); //... setwindowflags(flags);//restore 

if sure such "feature" not irritate users, can use this, in case use link comment.


Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -