I am trying to get started with my school project relating to QT designer, but after going through different tutorials I still don't seem to get it. I haven't programmed with graphical user interfaces before.

Problem is that I have a line edit box for text input and a push button. What I am trying to do is to save a text from the line edit box to a certain variable when push button is clicked. This sounds like a basic thing to me but I would appreciate if some one could give me a hint how to do this. Thanks.