The problem is connected with the first parameter of addTab function. When this got compiled i get Send/Don't send error. Look at the code:
Qt Code:
  1. ui->tabWidget->addTab(new QWidget(), "Untitled");
To copy to clipboard, switch view to plain text mode 
Do you have any ideas how to prevent that error?