I have a button that let's users browse for images and a line edit that' suppose to display the path of the image when the button is clicked. Unfortunately after choosing the image nothing get's displayed in the line edit. I thought it was automatic that the path will be displayed like Visual Basic.

So how can I get the path (ex: Pictures/2.jpg) of an image and display it in a line edit when the button is clicked?