In this example of a Qt 6 interface witten in C++, selected UI events trigger a UI lock-out for a fixed — in this case, hard-coded — duration. The lockout is enforced by an overlay widget that obscures MainWindow's entire central widget.
DaManDOH/UI_lockout_with_duration_by_overlay
Qt 6 example wirtten in C++ of UI lockout w/ a fixed duration by a overlaid widget
C++GPL-3.0