It looks like your application halts because you are showing a modal dialog. Try this instead:
Qt Code:
  1. void datapro::on_pushButton_2_clicked()
  2. {
  3. dig dialod(this);
  4. dialod.show();
  5. }
To copy to clipboard, switch view to plain text mode