In Qt4, I was able to implement a modal Keyboard Dialog by doing ModalKeyboard::ModalKeyboard(QWidget *parent) : QDialog(parent) { setModal(false); keyboard = new QDeclarativeView(this); keyboard->setSource(QUrl::fromLocalFile("qml/main.qml")); keyboardObject = keyboard->rootObject(); } ... void ModalKeyboard::exec() { keyboard->show(); QObject * keyboardValueLabel = ((QObject*)keyboardObject)->findChild<QObject *>("keyboardText"); QDeclarativeProperty(keyboardValueLabel, "text").write(typed); QDialog::exec(); }
However, there is no more QDeclarativeView in Qt5. Instead there is a QQuickView, which has a QWindow as a parent, not a QWidget and therefore not a QDialog. Is tere a way to replicate the same bheaviour, to have the application block until the user accepts the keyboard input?
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest