I don't know why it's virtual, I must have used copy/paste from other existing code and didn't notice. Anyhow it made no difference.

The object is created here:

Qt Code:
  1. void MainWindow::openRecord(int anID, int aType)
  2. {
  3. if (aType < 4)
  4. {
  5. TransactionDialog *transactionDialog = new TransactionDialog(this, anID, aType);
  6. transactionDialog->show();
  7. }
  8. }
To copy to clipboard, switch view to plain text mode