The parent-child relationship of QT objects

 

 

 

 

 

 

No memory leaks

Logically speaking, a new and delete have a one-to-one relationship. Why, because of QT's father-son relationship. When the parent object is deleted, all child objects are deleted

 

 

 

 

 

 

Guess you like

Origin blog.csdn.net/qq_26690505/article/details/108548767