Access to QFileDialog::getSaveFileName Warning Icon



  • 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?

  • Lifetime Qt Champion

    Hi,

    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.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.