C++ QT之指定父对象

指定父对象有2种方法

1)setParent  如 a.setParent(&b)

2)构造函数传参。  QPushButton a(&b)

 

posted @ 2022-11-20 22:25  刘一手007  阅读(128)  评论(0)    收藏  举报