How pass the data from dialog box to mainwindow
-
The example that i have given to you is very simple.
For this You need to work on SIGNAL and SLOT ;
your problem is very basic.
Just try to get basic knowledge from tut and docs.
if not solved then find various link/tutorial available on net.
Hope it helps. -
Hi Pawam.
[quote author="Pawan Pal" date="1396583482"]Hi SumitThanks, for code but its not working, comeing errror.
I written this code.QString str = "loni"; int length = str.length(); ui->lineEdit->setText(length);
Error : invalid conversion from 'int' to 'const char*' [-fpermissive]
[/quote]
edit your code in one line
ui->lineEdit->setText(QString::number(length));
Hope it helps