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

Doc: Drag.mimeData QVariantMap is documented as "stringlist"

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: P3: Somewhat important P3: Somewhat important
    • 6.5.0
    • 5.15.7, 6.3.0
    • None
    • All
    • 17318c4805d089f10c25f8165dae7d1f908bd311

      Wrong documented type of Drag::mimeData. It is implemented as QVariantMap (which is a type alias to QMap<QString, QVariant>), but the property is documented to be of a nonexistent superficial type "stringlist".

      I don't know how to document that type properly, but even the more correct one list<string> is not suitable here.

      Besides, code examples use the notation of an inline JavaScript object. While it works in this particular case, in other parts of QML documentation it was stated that such braces may (and will) be treated as block of code, leading to syntax errors. It is suggested to use braces inside parenthesis instead, like this:

      Drag.mimeData: ({prop: val})
      

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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            ratijas ivan tkachenko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes