You are not logged in.

Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

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.