Hi All,
I have created a dialog(Disp) in Qt-4.2 which has 3 lineEdits namely X,Y,Z when the user press a key from keyboard a new diaolg(DatumForm) will open which has 4 namely lineEdits Sl.No, Xdat, Ydat,Zdat and user will enter some values in the lineEdits when he press the Emter key from keyboard the values of Xdat, Ydat,Zdat sholud be displayed in X,Y,Z lineEdits....
I am not able to display values in Dispd dialog .. here is the code snippet
void Disp::openDatumForm()
{
DatumForm *datumform = new DatumForm(this);
datumform->show();
// datumform->setWFlags();
datumform->move(35, 90);
if( datumform
->exec
() == QDialog::Accepted) {
DatumVal = Datumno_Val;
XVal = Xdatum_Val;
YVal = Ydatum_Val;
ZVal = Zdatum_Val;
datuminitial();
}
}
void Disp::openDatumForm()
{
DatumForm *datumform = new DatumForm(this);
datumform->show();
// datumform->setWFlags();
datumform->move(35, 90);
if( datumform->exec() == QDialog::Accepted)
{
DatumVal = Datumno_Val;
XVal = Xdatum_Val;
YVal = Ydatum_Val;
ZVal = Zdatum_Val;
datuminitial();
}
}
To copy to clipboard, switch view to plain text mode
But the same thing is working in Qt-3.3 and also i have attached the ui forms
Please help us.
Bookmarks