You are not logged in.

QtDummy

Unregistered

1

Wednesday, November 16th 2005, 11:03am

MouseEvent is allowed on parent of modal dialog

Do anybody know how to totally block the mouse and key event when displaying modal dialog? I'm using setModal(true) and show(). When i click on my dialog's parent widget button, it actually execute the button task AFTER my dialog closed.

For your information, my dialog is sort of progress dialog. After loading the dialog will close itself.

Also, I'm not using exec() because I have a text edit running in the parent widget while displaying this progress dialog.

  • "wysota" is male

Posts: 4,276

Location: Warsaw, POLAND

  • Send private message

2

Wednesday, November 16th 2005, 11:06am

RE: MouseEvent is allowed on parent of modal dialog

Quoted

Originally posted by QtDummy
Also, I'm not using exec() because I have a text edit running in the parent widget while displaying this progress dialog.


Use exec(). It blocks the stuff you want to block :) The text edit will be fine, you just won't be able to type anything in by yourself (using the keyboard), but I guess that's fine, if you want to block the keyboard in your parent anyway.