Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-127580

QFile::supportsMoveToTrash

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Fixed
    • Icon: Not Evaluated Not Evaluated
    • 6.9.0 FF
    • None
    • Core: Other
    • None
    • 17d1d577c (dev)

      In our app, we need to know if moving to a system trash is supported.

      As a workaround, we can create a temporarily file and then try to delete it using QFile::moveToTrash. 

      But, this is not very good and convenient. Instead, I would like to be able to use some API like static bool QFile::supportsMoveToTrash() or QStorage(xxx).supportsMoveToTrash().

        For Gerrit Dashboard: QTBUG-127580
        # Subject Branch Project Status CR V

            thiago Thiago Macieira
            alervd Alexander Dyagilev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes