PDA

View Full Version : Qt 4 current directory path



bunjee
7th May 2008, 18:52
Hey there.

I need to set the default current directory.

When running my app from another folder, is there a way "to force Qt" to use the binary's directory as current directory ?

Thanks.

wysota
7th May 2008, 19:58
Sure.


QDir::setCurrent(QCoreApplication::applicationDirP ath());