hi how to pass string value from mainwindow to another window using constructor | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

hi how to pass string value from mainwindow to another window using constructor

i create a user login form i want to show username in text box in second window after i login

22nd Nov 2018, 8:17 AM
Abinaya sekar
1 Answer
+ 2
In SoloLearn we have only a few options for doing this with a single file to work with. Here is an example: https://code.sololearn.com/W5GQwIkhEv2e/#html If you are building a serious web application I would recommend using a javascript library such as Auth 0 in which case the username will be available over API after the user has logged in.
24th Nov 2018, 9:20 PM
Logan
Logan - avatar