using a Qstring from previous widget
i made a widget that takes names
QString N1 = ui->Player1name->toPlainText();
and i want to display the name on a label on the new window :
i put include the previous window then
but i get "use of undeclared identifier"
pls help thanks
You need to post some code snippets and the proper error message referring the actual vaiables. Otherwise nobody can help you.
When you create a new windows, pass your string via the constructor of the new window.
Pass it with constructor or use Signals & Slots (you can send out a signal which has a QString with your name as argument)