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

[Linux] QLineEdit textEdited/textChanged signal is emitted recursively when calling clearFocus() from within textEdited() with Japanese IME

    XMLWordPrintable

    Details

    • Platform/s:
      Linux/X11

      Description

      If calls clearFocus() in QLineEdit's textEdited or textChanged slot what is signaled by input Japanese like 'あ', signal is emitted recursively then causes stack overflow.

      void MainWindow::slot_TextEdited ( QString _q_str_Text )
      {
          if( q_lineedit_Edit->hasFocus() )
              q_lineedit_Edit->clearFocus();
      
      

      It doesn't cause if input English, also not reproduce on Windows.

       

      Please check attached sample on Linux environment. (It needs to install Japanese IM for reproducing)

       

        Attachments

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

          Activity

            People

            • Assignee:
              qt.team.quick.subscriptions Qt Quick and Widgets Team
              Reporter:
              akizawa Akihito Izawa
            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes