Tino
29th July 2009, 13:49
Hi,
In a QDialog constructor I do that:
try {
QLabel *lbls = new QLabel[numLbls]; //numLbls is passed as parameter
} catch(std::bad_alloc e) {
// How I can abort this QDialog and avoid to be show?
}
How I can abort this QDialog and avoid to be show?
In a QDialog constructor I do that:
try {
QLabel *lbls = new QLabel[numLbls]; //numLbls is passed as parameter
} catch(std::bad_alloc e) {
// How I can abort this QDialog and avoid to be show?
}
How I can abort this QDialog and avoid to be show?