Hi,
In a QDialog constructor I do that:

Qt Code:
  1. try {
  2. QLabel *lbls = new QLabel[numLbls]; //numLbls is passed as parameter
  3. } catch(std::bad_alloc e) {
  4. // How I can abort this QDialog and avoid to be show?
  5. }
To copy to clipboard, switch view to plain text mode 

How I can abort this QDialog and avoid to be show?