Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-2797

drop events dont propegate correctly in QWebEngineView

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • None
    • 6.7.1
    • PySide
    • None
    • Windows
    • found a solution

    Description

      When dropping a file to a webpage that does accept drops, like so

      class WebView(QWebEngineView):
         def {}init{}(self):
            super().{}init{}()

          def dropEvent(self, event: QDropEvent):
                 print("drop event")
                 event.accept()

      it does print "drop event" but does not actually transfer the file to the page
      without re defining the dropEvent method it works just fine
      i need to redfien the drop event as i need to do some other stuff before handing it over to the page.

      Attachments

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

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            qlueless batz dan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes