[Interest] QDeclarativeView in a QDialog

Mitchell Verter mitchell.verter at gmail.com
Mon Aug 26 23:46:12 CEST 2013

Hi all,

So I would like to implement the functionality of QDialog using a
QDeclarativeView widget.  The input will be coming from my Keyboard and I
would like the application to wait until my input is finished.  Therefore,
I would like to do something like a call to exec().

My constructor is something like this:

ModalKeyboard::ModalKeyboard(QWidget *parent) :
    keyboard = new QDeclarativeView();
    keyboardObject = keyboard->rootObject();
... [ Signals and Slots ]

I don't know how to coordinate this with my exec()

When I try
void ModalKeyboard::exec()
{    keyboard->show();

I can not block the thread

When I try:
void ModalKeyboard::exec()
{    keyboard->show();
The QDialog -- an empty widget -- blocks all input to the keyboard or
anywhere else.

What should I be doing here?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130826/c90eca3a/attachment.html>

More information about the Interest mailing list