[Python] PyQt: How to automatically deselect items in QListWidget? [duplicate]

Discussão em 'Python' iniciado por Stack, Fevereiro 18, 2025.

  1. Stack

    Stack Membro Participativo

    When selecting an item in a QListWidget, it stays selected even after clicking on the blank space between the items.

    This doesn't feel natural, as i'd expect the items to deselect after clicking away from them.

    Is there a way to clear selection when the user doesn't click on any of the QListWidget's items?

    Continue reading...

Compartilhe esta Página