Hi everyone, I keep on getting the error below when I try to modify the default constructor for a dialogue box. Here is the constructor
Qt Code:
  1. explicit NewAccount(QWidget *parent = 0);
To copy to clipboard, switch view to plain text mode 
I want to add a QSqlDatabase object in the constructor so that it looks like this
Qt Code:
  1. explicit NewAccount(QWidget *parent = 0, QSqlDatabase db);
To copy to clipboard, switch view to plain text mode 
but I keep on getting this error. Am I doing something wrong?
13_03_2014.jpg