Qt World Summit: Submit your Presentation

Weird behaviour of QLineEdit

  • Whenever i click on the QLineEdit, it gets focus. This is correct behaviour. But apart from this it also receives KeyPress Events around 6-7 times.
    Please let em know how this can be avoided and how to check who is generating Key Press events when there is no key pressed. This behaviour is observed every time i click on the QLine Edit and try to move the cursor position (Touch screen, so no keyboard keys are pressed)

    This is observed only in embedded system. Same code works fine in Windows and Fedora.

    Inside the keyPressEvent if i try to print the key code then it shows code as: 1073152 multiple times.
    Also please let me know what this code corresponds to if anybody has any idea?