Guessing they are on a layout just call removeWidget. for a QList it would be:
Qt Code:
// int i is the index to delete // QList<QSlider*> list; // QLayout *mylayout; myLayout->removeWidget(list.at(i)); delete(list.takeAt(i));To copy to clipboard, switch view to plain text mode





Reply With Quote
Bookmarks