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

OS X Yosemite drag and drop file QUrl in this format: "file:///.file/id=......"

    XMLWordPrintable

Details

    • macOS
    • be5cfa960b617fb31a2a1f4ce850c35dcb23fde5

    Description

      What I expect: file://localhost/Users/steve/Documents/MyFile.txt
      What I got : file:///.file/id=6571367.2773272/

      Example:

      #include <QtGui>
      #include <QtWidgets>
      #include <QDebug>
      
      class View : public QWidget
      {
          Q_OBJECT
      public:
          View() {
              setAcceptDrops(true);
          }
      protected:
          void dragEnterEvent(QDragEnterEvent *event) {
              qDebug() << event->mimeData()->urls().at(0);
          }
      };
      
      int main(int argc, char *argv[])
      {
          QApplication a(argc, argv);
          View view;
          view.show();
          return a.exec();
      }
      
      #include "main.moc"
      

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              dedietri Gabriel de Dietrich (drgvond)
              fbucek fbucek
              Votes:
              12 Vote for this issue
              Watchers:
              35 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes