How to get the path of an image
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?
Re: How to get the path of an image
Hi,
Get the path that from the dialog an get it to the lineEdit.
Re: How to get the path of an image
Can you explain further??
Re: How to get the path of an image
If you show some code, we could help you further :)
Re: How to get the path of an image
Quote:
Originally Posted by
stbb24
I thought it was automatic that the path will be displayed like Visual Basic.
In my experience it's not automatic in VB that a line edit and a separate dialog launched by a separate button are in any way related.
Quote:
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?
By doing exactly what you wrote:
Re: How to get the path of an image
Thanks got it to work using setText()