I have a GUI in Qt with a QListWidget showing different choices.
When I click down key, lower option becomes the selected one, but if I have selected the last one in the list, clicking down key does nothing.
I want that clicking down when I am in the last option makes it go to the first option again.
Do I have to implement a logic for this or is there any option in QListWidget that makes it behave like that?
You have to do that yourself. I see three options:
QListWidget
and override QAbstractItemView::moveCursor.QListWidget
and override QAbstractItemView::keyPressEvent.KeyPress
event.