PDA

View Full Version : QFileDialog is crashed?



Gokulnathvc
19th December 2011, 06:29
I am using the following code but it crashes:


QString Direc = QFileDialog::getExistingDirectory(this,tr("Open Directory),tr(\home"),QFileDialog::ShowDirsOnly);

ChrisW67
19th December 2011, 06:54
The code you posted won't even compile. How about you copy and paste the actual code.

Gokulnathvc
19th December 2011, 07:13
This is the code am actually using..

Lykurg
19th December 2011, 07:16
no surely not. Watch the quotation marks and use slashes, no backslashes.