Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Access to QFileDialog::getSaveFileName Warning Icon
ModelTech last edited by
QFileDialog::getSaveFileName opens a message box in case you want to overwrite an existing file. This message box contains a warning icon.
- How can I get access to this icon?
- Are there any other 'standard' icons available in some way?
- Is there a way to change the icon? If so, then how?
You can't when using that function since it's a static method that will use the platform file dialog.
From memory you might be able to use setIconProvider on an instance of QFileDialog to change that.