PDA

View Full Version : qfiledialog getOpenFileName under linux doesn't show any files



criskross
7th May 2013, 13:08
Hey guys by porting my code to linux i get the problem that my getOpenFileName of class QFileDialog doesn't show any files. What's my fault?



QFileDialog::getOpenFileName(this,"./", "*.*", "open file dialog");


thx in advance

criskross
8th May 2013, 00:35
no answer?

amleto
8th May 2013, 01:23
1) there're no files.

2) You put arguments in the wrong order.
qfiledialog.html#getOpenFileName

ChrisW67
8th May 2013, 03:27
Apart from amleto's observation about argument; on Linux a file pattern "*.*" is not necessarily going to show all the files in a given location.

criskross
8th May 2013, 20:21
but what pattern will show all files?

amleto
8th May 2013, 20:36
"*" ?



................

anda_skoa
9th May 2013, 16:44
That argument is the filename filter, if you don't want to filter anything, don't specify one.

Cheers,
_