Thank you for replying.
Exactly i did the same , but i am not getting how to cancatenate the projectname and projectpath to save the project. (Just like \Desktop\savenewproject.xml) Here savenew project is projectname and desktop/ is project path.
I wrote like this:
newproject::newproject(QWidget *parent)
: QDialog(parent)
{
ui.setupUi(this);
connect(ui.okButton,SIGNAL(clicked()),this,SLOT(on _okButton_clicked()));
connect(ui.cancelButton,SIGNAL(clicked()),this,SLO T(close()));
connect(ui.pushButton,SIGNAL(clicked()),this, SLOT(setLastDir()));
}
newproject::~newproject()
{
//delete ui;
}
void newproject::setLastDir()
{
ui.lineEdit_2->setText(QFileDialog::getExistingDirectory(this, msg_head_lastDirDialog,
"/home", QFileDialog::ShowDirsOnly | QFileDialog:ontResolveSymlinks) + "/");
Projectname=ui.lineEdit->text();
Projectpath=ui.lineEdit2->Text();
}
void newproject:n_okButton_clicked()
{
}
Here i have to combine the projectname with projectpath.






ontResolveSymlinks) + "/");
n_okButton_clicked()
Reply With Quote


Bookmarks