qt父对象定义

qt的构造函数parent的作用是:

构造函数把父对象设置给父类,之后通过继承父类把自己的父对象设置为parent。

posted @ 2018-05-02 17:53  呵哈呵  阅读(14)  评论(0)    收藏  举报