1 Attachment(s)
Constructor Error, please assist
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
Code:
explicit NewAccount
(QWidget *parent
= 0);
I want to add a QSqlDatabase object in the constructor so that it looks like this but I keep on getting this error. Am I doing something wrong?
Attachment 10128
Re: Constructor Error, please assist
This is pretty basic C++ : default arguments. Your compiler pointed out the error - define a default value just for second parameter or both. Or change the order of constructor parameters.