私はコードの一部を扱っていますが、その正確性について 100% 確信が持てません。それについてどう思うか教えてください。(私はQtでコーディングしています)
サンプルのみ:
CustomWidget *widget; //defined as private
widget = new CustomWidget(this);
connect(widget,SIGNAL(onCLose(), this, SLOT(onWidgetClose()));
widget = new CustomWidget(this);
connect(widget,SIGNAL(onCLose(), this, SLOT(onWidgetClose()));
widget = new CustomWidget(this);
connect(widget,SIGNAL(onCLose(), this, SLOT(onWidgetClose()));
void onWidgetClose(){
CustomWidget *w = findClosedWidget();
delete w;
}