原创 qt中窗口關閉立即釋放資源的方法,多用於子窗口

qt中窗口關閉立即釋放資源的方法,多用於子窗口 chatwindow *win = new chatwindow(this); win->setAttribute(Qt::WA_DeleteOnClose);