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.
    Any ideas?



  • I would advise you to post sample code. It will clarify the situation and someone may give you a hint.

    Best regards,
    Leon



  • ok here goes.

    @int main(int argc, char *argv[])
    {
    QApplication app(argc, argv);

    MainWindow mainWindow;
    mainWindow.setOrientation(MainWindow::ScreenOrientationLockPortrait);
    mainWindow.showFullScreen();

    return app.exec();
    }

    MainWindow::MainWindow(QWidget *parent): QMainWindow(parent), ui(new Ui::MainWindow), deviceInfo(NULL)
    {
    ui->setupUi(this);
    ui->progressBar->setValue(0);
    ui->progressBar->setTextVisible(false);
    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
    fine.
    BUT when FindThingy is called by clicking on the button it does this:

    @ NoMatch nomatch_page;
    nomatch_page.showFullScreen();
    nomatch_page.exec();@

    where

    @NoMatch::NoMatch(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::NoMatch)
    {
    ui->setupUi(this);

    }

    NoMatch::~NoMatch()
    {
    delete ui;
    }@

    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?






Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.