Make sure that you initialize your member variables before you call those functions.

If you want to read(return) what the user write in the QLineEdit (just a guess) you should make them slots (and connect them with signals)
Documentation for signals and slots here