-
QList item Selection
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! :)
-
Re: QList item Selection
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.