The "Qt way" of communicating information between different parts of a GUI is to use signals and slots. In your case, your main window should probably implement a signal that is emitted in the onclick() method. As arguments to the signal, you can send the information you wish to appear on your secondary window. You will implement a slot in your secondary window that has the same arguments. In this slot, you fill your line edits with the arguments you have been passed.
In the code that constructs the secondary window, connect the main window's signal to the secondary window's slot.
See the Qt signals and slots tutorial.
Bookmarks