Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Incorrect documentation on DragEvent
Qt 6.11 is out! See what's new in the release blog

Incorrect documentation on DragEvent

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 657 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    arieljake
    wrote on last edited by
    #1

    This is in reference to:
    http://qt-project.org/doc/qt-5.0/qtquick/qml-qtquick2-dragevent.html

    These are the properties described in the reference:
    accepted, action, drag.source, keys, supportedActions, x, y

    These are the methods:
    accept(), accept(enumeration action)

    This is what I see when I click all properties and methods, including those that are inherited. However setting a breakpoint and reviewing the drop object, I see:

    acceptProposedAction, formats, getDataAsString, hasColor, hasHtml, hasText, hasUrls, html, objectName, proposedAction, test, urls

    And most importantly, I don't see drag.source but a property called 'source' which for some reason is always null.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved