Modal dialogs in plug-in with QT
Hi,
We are trying to create a modal dialog in Illustrator CS6 plug-in using Qt.
But when we call QDialog::exec() method, dialog appears but it is not modal, we can interact with panels (move them, select colors from palette and so on).
The code that we are using looks like:
static HWND mainHWND = ::FindWindow(NULL, L"Adobe Illustrator CS6");
MyDialog *dialog = new MyDialog(new QWinWidget(mainHWND));
dialog->exec();
or simply
QMessageBox::about(new QWinWidget(mainHWND), "title", "text");
In both cases dialog and message box are not modal.
The only way to create a custom modal dialog we have found is using Flash, but it is not acceptable for us.
Could you suggest how to do this with Qt?
Thanks!
