遍历QT界面下同种控件

QList<QCheckBox*> cbs = findChildren<QCheckBox*>();

  只限一级控件

原文地址:https://www.cnblogs.com/ssvip/p/15018689.html