Printable View
can you please elobrate it more..
X Error: BadDrawable (invalid Pixmap or Window parameter) 9Code:
{ Q_OBJECT public: { setupUi(this); connect(PButton_CloseBrowser, SIGNAL(clicked()) , this, SLOT(slotCloseBrowser())); } ~HtmlNavigator() { qDebug()<<"destroy html"; } ...... private slots: void slotCloseBrowser() { destroy(); } ..... };
Major opcode: 62 (X_CopyArea)
Resource id: 0x0
I have create object of above class in more than 10 different location in our application but object not destroy as distructor is not call on click of close button and above error again and again.
When I exit my application 10 times distructor call ,
Help any one..
You have to set the Qt::WA_DeleteOnClose widget attribute on that dialog.
The BadDrawable error must be caused by something else. What does destroy() do?