Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
using a Qstring from previous widget
rexter last edited by
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
koahnig last edited by
You need to post some code snippets and the proper error message referring the actual vaiables. Otherwise nobody can help you.
CroCo last edited by
When you create a new windows, pass your string via the constructor of the new window.
Pl45m4 last edited by
Pass it with constructor or use Signals & Slots (you can send out a signal which has a QString with your name as argument)