[Solved] How to tell if QListWidget is empty
-
Hello -
I've looked through the Qt Documentation, but can't seem to find a way to tell if a QListWidget is empty. Is there a way to do so, and, if so, how?
Thanks,
Kate -
I really do spot a count property... I wonder what that does...
-
Thanks! I completely missed that.
-
You could check "count() == 0":http://doc.qt.nokia.com/4.7/qlistwidget.html#count-prop