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
Post a Comment