Skip to content

[Question]QLineEdit does not stop iteration while waiting event editingFinished() or returnPressed() #75

@Mathieu1972

Description

@Mathieu1972

Environment :

  • OS: Win 10
  • Python 3.5.7
  • PyQt5

The "for" loop containing the QlineEdit is supposed to wait for a Return keypressed or Enter key pressed and then process the self.Enterpressed_dosomething method if the following command receive the signal (here editingFinished).
self.lineEdit.editingFinished.connect(self.Enterpressed_dosomething)

Instead of that, the loop finishes all the iteration and then the QlineEdit widget continues to activate self.Enterpressed_dosomething method when Enter or Returned pressed whereas the loop is finished.
How can i make the loop wait for the signals (returnPressed or editingFinished or textChanged )?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions