in qt widget error:
malloc(): smallbin double linked list corrupted it not happen time think have narrowed down when starts.
i have qgraphicsview , qgraphicsscene , there i'm drawing lines whos points stored in vector. reason need pass points library. once draw points have option if click on line i'm prompted window can change coordinates of line.
resizedialog *dialog = new resizedialog(this); dialog->exec(); delete dialog; the above code code use open new qdialog. know if use this->close() qt malloc(): smallbin double linked list corrupted not appear lose instance of qgraphicsview. reason need keep qgraphicsview window open if need chose add further lines.
any advice on how can eliminate issue wold helpful.
rather using delete dialog;, use dialog->deletelater();. assume small code portion inside slot of object referenced "this", , direct deletion source of trouble resizedialog *dialog = new resizedialog(this); affect parent object this.
Comments
Post a Comment