#include class GroupSelectionBox: public QListWidget { Q_OBJECT public: GroupSelectionBox(QWidget *parent); void selectedGroupIds(std::list &groupIds) const; void selectedGroupNames(QList &groupNames) const; void setSelectedGroupIds(const std::list &groupIds); private slots: void fillGroups(); };