QList<QCheckBox *> widgets = findChildren<QCheckBox *>(); foreach(QCheckBox* checkbox, widgets) { connect(checkbox, SIGNAL(stateChanged(int)), this, SLOT(slotEnableSaveButton())); }
posted on 2011-07-04 12:03 katago 阅读(416) 评论(0) 编辑 收藏 举报