ashukla
3rd March 2008, 05:14
Dear Qtians!
I have one question about new.
//UI_DLGTEXTSCROLLER_H
QPushButton *pbOk;
void setupUi(QDialog *dlgTextScroller)
{
.....
....
pbOk = new QPushButton(dlgTextScroller);
pbOk->setObjectName(QString::fromUtf8("pbOk"));
pbOk->setGeometry(QRect(293, 197, 154, 27));
..........
.........
}
How a way pbOk handle error when bad allocation exists due to some reason.
I am not seeing any try{ }catch{ } block for that.
I have one question about new.
//UI_DLGTEXTSCROLLER_H
QPushButton *pbOk;
void setupUi(QDialog *dlgTextScroller)
{
.....
....
pbOk = new QPushButton(dlgTextScroller);
pbOk->setObjectName(QString::fromUtf8("pbOk"));
pbOk->setGeometry(QRect(293, 197, 154, 27));
..........
.........
}
How a way pbOk handle error when bad allocation exists due to some reason.
I am not seeing any try{ }catch{ } block for that.