QLineEdit wont let me type anything in
Hi Guys, I'm very stuck and it was all going so well.
I have a dialog box with a QLineEdit on it plus a pushbutton. If I press in the Qlineedit box it lets me type in ok,
if I press the pushbutton, which brings up another info screen dialog box, which I then close to return to the first
dialogbox. I can no longer type anything into the QLineEdit.
i'm using the Latest Qt Creator and 4.7 libs
All the other controls on the dialog continue to function fine but the QlineEdit seems to lock out input.
I would advise you to post sample code. It will clarify the situation and someone may give you a hint.
ok here goes.
@int main(int argc, char *argv)
QApplication app(argc, argv);
MainWindow::MainWindow(QWidget *parent): QMainWindow(parent), ui(new Ui::MainWindow), deviceInfo(NULL)
connect(ui->IDC_CheckThingy, SIGNAL(clicked()),this, SLOT(FindThingy()));
connect(ui->IDC_Info, SIGNAL(clicked()),this, SLOT(ShowInfo()));
This brings up the main dialog, which contains the QLineEdit and you can enter text on te mobile phone
BUT when FindThingy is called by clicking on the button it does this:
@ NoMatch nomatch_page;
@NoMatch::NoMatch(QWidget *parent) :
This second dialog just has a close button on it and when clicked returns from the exec
back to the first dialog. Now you can't enter text.
I seem to have the same issue.
Have you solved this?
I found this:
not sure if it's related to qdialog.
I found a solution to my case. I posted here: