Modal QDialog with VirtualKeyboard (inputPanel)
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?
Who's your daddy?
i.e. could you tell us the parent of each of the 3 items in the picture?
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();
Ok, I'm not familiar with QInputContext and as, it was discontinued in Qt5, I'm unable to test it.
My question derived from the fact that I thought you could reparent the "Input Panel" to the new dialog to make it work
Sadly not, :'(
thanks anyway, any other help?