Saving a .png takes a long time on the humble hardware. While it's being saved, I don't want the buttons to accept clicks.

I do QPushbutton::setEnabled(false) on them. They go grey, but if I click on them the click is accepted and processed after the long operation completes.

Is this expected behavior? Do I need to disconnect the signals and reconnect or is there a better way to disable clicks during a long operation?

It's Ok to block the GUI, that's what I want. I don't want the user to do anything until the operation completes.

(The windowModality is ApplicationModal and a ProgressBar is displayed also.)

Thanks,

Dave Thomas