Hello
I have a problem with a qspaceritem object. The problem is that if I have a QSpacerItem *object inserted into a qgridlayout and I try to close the application it crashes .
I put the qspaceritem inside the layout like this:
layout ->addItem(spacer,0,0);
layout ->addWidget(widget,0,1,1,1);
QGridLayout *layout = new QGridLayout();
QSpacerItem *spacer = new QSpacerItem(5,2);
layout ->addItem(spacer,0,0);
layout ->addWidget(widget,0,1,1,1);
To copy to clipboard, switch view to plain text mode
this is the result
I get a message informing of a first-chance exception.... and the parameter of the code that seems to be the problem:
~QGridBox() { delete item_; }
~QGridBox() { delete item_; }
To copy to clipboard, switch view to plain text mode
Do you have any idea how to fix this??
Bookmarks