开发者

How to set QFileDialog to set initially selected files?

开发者 https://www.devze.com 2023-01-20 22:37 出处:网络
I mean when the Dialog pop up, some f开发者_运维问答iles according to the filer are in selected state.

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

精彩评论

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

关注公众号