PDA

View Full Version : QList item Selection



bostero22
9th July 2010, 19:23
Hello everybody... I have a Qlist that have items and a "Add" button that adds the selected item somewhere... what I want is.. if the user did not select any Items to pop up an error dialog. I could not find any member function of the Qlist that returns a bool saying if an item was actually selected or not... any ideas on how to approach this??? i been trying for hours but could not do it!

thanks in advance! :)

Lykurg
9th July 2010, 19:26
A QList has nothing you describe! Are you talking about a QListWidget or a QListView? Have a look at the selection model. With it you can determine if an item is selected.