Calling the base class's implementation from the derived?

后端 未结 4 1041
渐次进展
渐次进展 2021-01-20 15:02

I want to do what the base does, but then I want to add some derived stuff.

I tried the following but it did not work: (this function is virtual in AguiWidget)

4条回答
  •  感动是毒
    2021-01-20 15:09

    You were almost there, just one small syntax change.

    AguiWidget::onSizeChanged(size);
    

提交回复
热议问题