Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-79240

Signal textChanged(QString) does not emit from QLineEdit in new Qt.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.12.5
    • None
    • Development - Kubuntu 18.04 LTS, run/debug - Android 7.1.
    • Android

    Description

      In my Android app I use QLineEdit attached to QGraphicsProxyWidget laying on QGraphicsScene. I connect QLineEdit::textChanged(QString) signal for some purpose. All is quite simple:

      connect( ui->lineEdit, SIGNAL(textChanged(QString)), this, SLOT(fillSelector(QString)) );

      All worked fine with Qt 5.9.6. But with Qt 5.12.5 I suddenly lost this signal. It is connected as well but does not emit while typing in line. After strike Enter key it emits. And it emits if line is changed programmatically.

      In console I see warning message on each typing:

      : QMetaObject::invokeMethod: No such method QGraphicsView::inputMethodQuery(Qt::InputMethodQuery,QVariant)

      Do not ask me for all code - I cannot give it. And I have no time to make test application. I must find way to fix this bug in my application.

       

      PS: The signal textEdited(QString) does not emit too.

      PPS: Just have build same project on Linux desktop for test. It works. In Linux Kubuntu 18.04 QLineEdit emits textChanged() as well. That means - problem is with Android Qt 5.12.5 port. May be there is some issue with QLineEdit settings for Android. It interferes with Android line input used. But I cannot find anything new in docs. In my code changed nothing. I test on same Android device as used before with Qt 5.9.6.

      PPPS: Signal textChanged() emits in Android when digital characters are entered. But input validator is not installed for this field:

      ui->lineEdit->setValidator( Q_NULLPTR );
      

      And the "input method hints" is set to:

      ui->lineEdit->setInputMethodHints( Qt::ImhNone );

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            gourmand64 Gourmet
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes