class HtmlNavigator
: public QDialog,
public Ui
::HtmlNavigator{
Q_OBJECT
public:
{
setupUi(this);
connect(PButton_CloseBrowser, SIGNAL(clicked()) , this, SLOT(slotCloseBrowser()));
}
~HtmlNavigator()
{
qDebug()<<"destroy html";
}
......
private slots:
void slotCloseBrowser()
{
destroy();
}
.....
};
class HtmlNavigator : public QDialog,public Ui::HtmlNavigator
{
Q_OBJECT
public:
HtmlNavigator(QString,QString,QWidget *parent)
{
setupUi(this);
connect(PButton_CloseBrowser, SIGNAL(clicked()) , this, SLOT(slotCloseBrowser()));
}
~HtmlNavigator()
{
qDebug()<<"destroy html";
}
......
private slots:
void slotCloseBrowser()
{
destroy();
}
.....
};
To copy to clipboard, switch view to plain text mode
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
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..
Bookmarks