Basically any QObject derivated class having access to the list widget goes. So if you already have subclassed for example QMainWindow and the list widget is inside it, you could add the slot into the main window and do the deletion from there. However, don't be afraid of subclassing. I do personally like subclassing a lot and tend to put myself the functionality where it belongs and makes the most sense..![]()
Bookmarks