QMap<int, QWidget*>::iterator iter = m_pages.begin();
while (iter != m_pages.end()){
if (presistMenuIds.contains(iter.key())) {
iter++;
continue;
}
int key = iter.key();
iter++;
QWidget *widget = m_pages.take(key);
delete widget;
widget = nullptr;
}