Qt中设置属性setAttribute(Qt::WA_DeleteOnClose)_qt setattribute()-CSDN博客

网站介绍:文章浏览阅读1.5k次。参考博客:https://my.oschina.net/weiweiqiao/blog/387667/printhttps://blog.csdn.net/ZC20141220/article/details/88052959一般定义在堆上的时候是不会出错的,如下:在构造函数中使用如下:_qt setattribute()