QListWidgetItem is not being selected

  • Hi,

    When I'm selecting an item from my qlistwidget it triggers currentItemChanged() signal but the selected item returns false on qlistwidget.currentItem().isSelected()

    def addToProcessingList(self):
    if self.ui.itemList.currentItem().isSelected(): print self.ui.Testbenches.currentItem().text()]

    Why it returns FALSE when the item is actually selected?

  • Lifetime Qt Champion


    Why not use the parameters of currentItemChanged to get the current item ?

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.