开发者

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");
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜