> > + if (QAbstractButton * button = > qobject_cast<QAbstractButton *>(children[child_index])) { > > + widget_matches = (new > QString(button->text()))->replace('&', "") > > + > .contains(search, Qt::CaseInsensitive); > > (new QString ..) produces a memory leak, drop the new: > > widget_matches = group_box->title().replace('&', > "").contains(search, Qt::CaseInsensitive);
Mmm, doesn't this changes the original string removing the "&"? venom00