[Qt-interest] QDir User Path

Lucas Pereira Caixeta lpcnew at gmail.com
Mon Apr 5 21:43:18 CEST 2010


Guys,
I found the solution!
The directory must be set in the constructor of QFileDiaglog =)

Example:
QFileDialog (this, tr ("Open File"), QDir:: HomePath (), tr ("filetype (*.
ft )"));

Thanks! =]

2010/4/5 Lucas Pereira Caixeta <lpcnew at gmail.com>

> Please,
>
> How can i acess the user folder on linux using the QDir?
>
> Actualy, i use QDir::Home()... but open a window who is the user folder...
> i need to enter on this folder...
>
>
> Thanks from Brasil! =)
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100405/7712685d/attachment.html 


More information about the Qt-interest-old mailing list