On 16-12-2015 16:16, Duane wrote:
On 16/12/2015 9:24 AM, André Somers wrote:


Op 16/12/2015 om 15:02 schreef Duane:
On 16/12/2015 8:53 AM, Thiago Macieira wrote:
On Wednesday 16 December 2015 08:10:44 Duane wrote:
I'm subclassing a QFileDialog. I need to get a pointer to the filename
box.  I was doing this with findChild<QLineEdit*>() with Qt4 but with
Qt5 this returns null.  Any suggestions?

XY problem. Why do you need to get the pointer to the line edit? What
are you
trying to do?


Not sure what you mean by XY problem.
http://meta.stackexchange.com/questions/66377/what-is-the-xy-problem

André


:-)

So my question should have been how can I get the filename that the user enters in the filedialog.





_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

You can use the selectedFiles() function icm with filemode AnyFile.
The full path including the entered file name will be returned.

Jan
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to