QFileDialog localization

前端 未结 3 1997
傲寒
傲寒 2020-12-12 01:01

QFileDialog is used in my code like following:

QFileDialog fileDlg;
fileDlg.setFileMode(QFileDialog::AnyFile);
fileDlg.setViewMode(QFileDialog::         


        
3条回答
  •  失恋的感觉
    2020-12-12 01:04

    You can use one of the static functions in QFileDialog. Those use the native file dialog from the OS, which will be in the correct locale and translation.

提交回复
热议问题