Modal QDialog with VirtualKeyboard (inputPanel)
Unsolved
General and Desktop
-
Hi guys,
I have a widget that show modal QDialog when button is clicked, this modal dialog contains QLineEdit.
And I need to write text with (virtualkeyboard) inputpanel on my QLineEdit , but cause my QDialog need to stay modal (due to customer need) , when i click out this dialog nothing will respond even the keyboard .
What i want to do is to keep my QDialog modal , and let QDialog accept click outside if the click is on the input panel.
See this picture for more details:
Is there any way to do this?
-
Hello VRonin,
parent of all items is widget , it's my mainWidget, for information this is my main.cpp
QApplication app(argc, argv); MyInputPanelContext *ic = new MyInputPanelContext; app.setInputContext(ic); QWidget widget; Ui::MainForm form; form.setupUi(&widget); widget.show(); Dialog* mDialog = new Dialog(&widget); mDialog->setModal(true); QObject::connect(form.pushButton,SIGNAL(clicked(bool)),mDialog,SLOT(show())); return app.exec();