Qt World Summit: Register Today!

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 ?