How can I get a signal when total items added in a QListWidget reaches a threshold(say listbox.count()=8)?
Also is there any way to limit number of items to be added in a QListWidget (such as a max limit or something)?
How can I get a signal when total items added in a QListWidget reaches a threshold(say listbox.count()=8)?
Also is there any way to limit number of items to be added in a QListWidget (such as a max limit or something)?
Subclass QListWidget, reimp all insert* and add* and add your counting mechanism.
Thanks a lot, working in that direction
Bookmarks