How to set QFileDialog to set initially selected files?
I mean when the Dialog pop up, some f开发者_运维问答iles according to the filer are in selected state. Does QFileDialog has a way to do this?
QFileDialog fd;
// Enable multple selection
fd.setFileMode( QFileDialog::ExistingFiles);
// Select the files you need
fs.selectFile( "MyFirstFile");
fs.selectFile( "MySecondFile");
精彩评论