Answer the question
In order to leave comments, you need to log in
How to pass text from one window to another in qt using the signals and slots mechanism?
The user enters his name in QLineEdit and on pressing the button a second window opens, where the user's greeting and his name are displayed in the label. How to implement this using the signals and slots mechanism?
Answer the question
In order to leave comments, you need to log in
Why is there a signal/slot mechanism here? Just pass the value from QLineEdit::Text as a parameter to the second window's constructor.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question