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?
Qt Code:
To copy to clipboard, switch view to plain text mode
thx in advance
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?
Qt Code:
To copy to clipboard, switch view to plain text mode
thx in advance
no answer?
1) there're no files.
2) You put arguments in the wrong order.
http://doc.qt.io/qt-4.8/qfiledialog.html#getOpenFileName
If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.
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.
but what pattern will show all files?
"*" ?
................
If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.
That argument is the filename filter, if you don't want to filter anything, don't specify one.
Cheers,
_
Bookmarks