PDA

View Full Version : modal dialog blocking problem...



photonmaster
3rd June 2008, 11:03
i am implemating a virtual keyboard, a simple one only for delivering key events in my QApplication instance. i put the keyboard in a qDockWidget. it works fine until a modal dialog appears. then QdockWidget is disabled and the keyboard inside it, can't accept mouseEvents. is there any way to unblock the virtual keyboard while the rest of the application stays blocked? i am intersting for a pure QT solution if any. Thanks

aamer4yu
4th June 2008, 05:40
How about putting the virtual keyboard in a modeless dialog ?? In that way it will still be visible, I guess ;)

Hope I am not wrong ...

photonmaster
4th June 2008, 08:35
the problem is that modal dialogs block all the other windows... they are visible but don't accept mouse events... when you call exec() for a dialog that dialog becomes modal and the program enters onother event loop that anly digests mouse events initiating from that dialog.

aamer4yu
4th June 2008, 09:49
You didnt get me.
I am asking if you can make the Virtual Keyboard as Modeless Dialog, instead of a dockwidget .

Something like On Screen Keyboard in Windows XP ?