我在一个自定义的widget构造函数中调用了:
QWidget *tmp= new QWidget(this,Qt::FramelessWindowHint | Qt::Popup);
据说指定父亲的构件自动被释放,但是我又看到如下文档:
按照文档,Popup类型的解释如下:
Indicates that the widget is a pop-up top-level window, i.e. that it is modal, but has a window system frame appropriate for pop-up menus.
那么是不是这个tmp还要在析构函数中释放呢?