How pass the data from dialog box to mainwindow
General and Desktop
14
Posts
3
Posters
7.0k
Views
1
Watching
-
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