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

Runtime undefined reference error when QML plugin uses private API

    XMLWordPrintable

    Details

    • Platform/s:
      All

      Description

      I am trying to use QQuickDragMimeData as a workaround for this other issue: https://bugreports.qt.io/browse/QTBUG-65183

      This is sadly a private API.

      I am using CMake as build system and linking my plugin against Qt5::QuickPrivate. However, when running the application that uses the plugin I get the following error:

      file:///.../Main.qml:4:1: plugin cannot be loaded for module "MyPlugin": Cannot load library /home/raskolnikov/dev/myplugin.so: (/home/raskolnikov/dev/myplugin.so: undefined symbol: _ZTI18QQuickDragMimeData)
      

      I am really stuck here. The next workaround I can think here is adding a QML DropArea that then forwards events to C++, but that's rather ugly from the client POV.

       

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              qtqmlteam Qt Qml Team User
              Reporter:
              raskolnikov Juan Pedro Bolivar Puente
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes