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

mimedata.cpp:72:46: error: no viable conversion from 'QVariant::Type' to 'QMetaType'

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P0: Blocker
    • 6.1.0 RC
    • 6.0.0 Alpha
    • SVG Support
    • None
    • macOS
    • 0b5f55deb5a1c077197383aa4defe8e7ebed01ad (qt/qtsvg/dev)

    Description

      mimedata.cpp:72:46: error: no viable conversion from 'QVariant::Type' to 'QMetaType'
      agent:2020/09/23 07:53:14 build.go:302:     return QMimeData::retrieveData(mimeType, type);
      agent:2020/09/23 07:53:14 build.go:302:                                              ^~~~
      agent:2020/09/23 07:53:14 build.go:302: /Users/qt/work/install/lib/QtCore.framework/Headers/qmetatype.h:292:21: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'QVariant::Type' to 'const QMetaType &' for 1st argument
      agent:2020/09/23 07:53:14 build.go:302: class Q_CORE_EXPORT QMetaType {
      agent:2020/09/23 07:53:14 build.go:302:                     ^
      agent:2020/09/23 07:53:14 build.go:302: /Users/qt/work/install/lib/QtCore.framework/Headers/qmetatype.h:292:21: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'QVariant::Type' to 'QMetaType &&' for 1st argument
      agent:2020/09/23 07:53:14 build.go:302: /Users/qt/work/install/lib/QtCore.framework/Headers/qmimedata.h:88:70: note: passing argument to parameter 'preferredType' here
      agent:2020/09/23 07:53:14 build.go:302:     virtual QVariant retrieveData(const QString &mimetype, QMetaType preferredType) const;
      

      Build log: https://testresults.qt.io/logs/qt/qtsvg/531045da43aadc461a505212a45dbf7d2626e8b9/MacOSMacOS_10_14x86_64MacOSMacOS_10_14x86_64Clangqtci-macos-10.14-x86_64-187515UseLegacyInstructions/f19ea36da255387ceb305326b79dedf6615ddb83/build_1600844893/log.txt.gz

      Details: https://testresults.qt.io/coin/integration/qt/qtsvg/tasks/1600844677

      Tested changes (refs/builds/qtci/dev/1600844675):
      https://codereview.qt-project.org/c/qt/qtsvg/+/314917/1 Update dependencies on 'dev' in qt/qtsvg

      Attachments

        For Gerrit Dashboard: QTBUG-86853
        # Subject Branch Project Status CR V

        Activity

          People

            fabiankosmale Fabian Kosmale
            janihe Jani Heikkinen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes