changed it now..
//in header file
public:
public:
QString fPath
explicit ChildDialog(const QString value, QWidget *parent = 0) ;
To copy to clipboard, switch view to plain text mode
ChildDialg
::ChildDialog(QString value,
QWidget *parent
) : QDialog(parent
),fPath
(value
) ui
(new Ui
::ChildDialog) {
}
ChildDialg::ChildDialog(QString value,QWidget *parent) : QDialog(parent),fPath(value) ui(new Ui::ChildDialog)
{
}
To copy to clipboard, switch view to plain text mode
now i am getting the error
multiple definition of ChildDialog::ChildDialog(QString,QWidget*)
using the statements below to launch the ChildDialog in my maindialog
ChildDialog = new ChildDialog(pValue,this);
ChildDialog->exex();
QString pValue;
ChildDialog = new ChildDialog(pValue,this);
ChildDialog->exex();
To copy to clipboard, switch view to plain text mode
what went wrong here?
Bookmarks