Please, show your code.
My code:
DialogImpl
::DialogImpl( QWidget * parent, Qt
::WFlags f
) {
setupUi(this);
lbl
= new QLabel("test",
this);
}
//
DialogImpl::~DialogImpl()
{
if (lbl != NULL)
delete lbl;
lbl = NULL;
}
DialogImpl::DialogImpl( QWidget * parent, Qt::WFlags f)
: QDialog(parent, f)
{
setupUi(this);
lbl = new QLabel("test", this);
}
//
DialogImpl::~DialogImpl()
{
if (lbl != NULL)
delete lbl;
lbl = NULL;
}
To copy to clipboard, switch view to plain text mode
working fine.
And when destroying parent widget (in this case Dialog, automatically destroyed childs widgets), may be it's issue your segmentation fault?
Bookmarks