PDA

View Full Version : Problem with item selected in a list



0xl33t
3rd August 2009, 16:45
Hi,

in QListWidget, how can i see if any of the item is selected! There is not something like: listWidget.hasSelection() ?

I need only to know if something is selected not what item, how can i do that?

thanks

spirit
3rd August 2009, 16:58
take a look at QListWidget::selectedItems.

0xl33t
3rd August 2009, 18:07
take a look at QListWidget::selectedItems.

yes , i didn't see that! I check if he returned list is empty!

thanks