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

qwinmime_wrapper.cpp(101): error C2259: 'QWinMimeWrapper': cannot instantiate abstract class

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.6
    • Fix Version/s: None
    • Component/s: PySide, Shiboken
    • Labels:
    • Environment:
      Win10 64bit, msvc2015

      Description

      When trying https://codereview.qt-project.org/193307 , got

      (testenv) C:\pyside-setup\testenv3_build\py3.5-qt5.6.3-64bit-release\pyside2\PySide2\QtWinExtras>nmake
      
      Microsoft (R) Program Maintenance Utility Version 14.00.24210.0
      Copyright (C) Microsoft Corporation.  All rights reserved.
      
      [  5%] Built target pyside2
      [ 45%] Built target QtCore
      [ 97%] Built target QtGui
      [ 97%] Building CXX object PySide2/QtWinExtras/CMakeFiles/QtWinExtras.dir/PySide2/QtWinExtras/qwinmime_wrapper.cpp.obj
      qwinmime_wrapper.cpp
      C:\pyside-setup\testenv3_build\py3.5-qt5.6.3-64bit-release\pyside2\PySide2\QtWinExtras\PySide2\QtWinExtras\qwinmime_wrapper.cpp(101): error C2259: 'QWinMimeWrapper': cannot instantiate abstract class
      C:\pyside-setup\testenv3_build\py3.5-qt5.6.3-64bit-release\pyside2\PySide2\QtWinExtras\PySide2\QtWinExtras\qwinmime_wrapper.cpp(101): note: due to following members:
      C:\pyside-setup\testenv3_build\py3.5-qt5.6.3-64bit-release\pyside2\PySide2\QtWinExtras\PySide2\QtWinExtras\qwinmime_wrapper.cpp(101): note: 'bool QWinMime::canConvertFromMime(const FORMATETC &,const QMimeData *) const': is abstract
      c:\qt\build\qt56-msvc2015\qtbase\include\qtwinextras\../../../../../qt5/qtwinextras/src/winextras/qwinmime.h(56): note: see declaration of 'QWinMime::canConvertFromMime'
      C:\pyside-setup\testenv3_build\py3.5-qt5.6.3-64bit-release\pyside2\PySide2\QtWinExtras\PySide2\QtWinExtras\qwinmime_wrapper.cpp(101): note: 'bool QWinMime::convertFromMime(const FORMATETC &,const QMimeData *,STGMEDIUM *) const': is abstract
      c:\qt\build\qt56-msvc2015\qtbase\include\qtwinextras\../../../../../qt5/qtwinextras/src/winextras/qwinmime.h(57): note: see declaration of 'QWinMime::convertFromMime'
      C:\pyside-setup\testenv3_build\py3.5-qt5.6.3-64bit-release\pyside2\PySide2\QtWinExtras\PySide2\QtWinExtras\qwinmime_wrapper.cpp(101): note: 'QVector<FORMATETC> QWinMime::formatsForMime(const QString &,const QMimeData *) const': is abstract
      c:\qt\build\qt56-msvc2015\qtbase\include\qtwinextras\../../../../../qt5/qtwinextras/src/winextras/qwinmime.h(58): note: see declaration of 'QWinMime::formatsForMime'
      C:\pyside-setup\testenv3_build\py3.5-qt5.6.3-64bit-release\pyside2\PySide2\QtWinExtras\PySide2\QtWinExtras\qwinmime_wrapper.cpp(101): note: 'bool QWinMime::canConvertToMime(const QString &,IDataObject *) const': is abstract
      c:\qt\build\qt56-msvc2015\qtbase\include\qtwinextras\../../../../../qt5/qtwinextras/src/winextras/qwinmime.h(61): note: see declaration of 'QWinMime::canConvertToMime'
      C:\pyside-setup\testenv3_build\py3.5-qt5.6.3-64bit-release\pyside2\PySide2\QtWinExtras\PySide2\QtWinExtras\qwinmime_wrapper.cpp(101): note: 'QVariant QWinMime::convertToMime(const QString &,IDataObject *,QVariant::Type) const': is abstract
      c:\qt\build\qt56-msvc2015\qtbase\include\qtwinextras\../../../../../qt5/qtwinextras/src/winextras/qwinmime.h(62): note: see declaration of 'QWinMime::convertToMime'
      C:\pyside-setup\testenv3_build\py3.5-qt5.6.3-64bit-release\pyside2\PySide2\QtWinExtras\PySide2\QtWinExtras\qwinmime_wrapper.cpp(101): note: 'QString QWinMime::mimeForFormat(const FORMATETC &) const': is abstract
      c:\qt\build\qt56-msvc2015\qtbase\include\qtwinextras\../../../../../qt5/qtwinextras/src/winextras/qwinmime.h(63): note: see declaration of 'QWinMime::mimeForFormat'
      NMAKE : fatal error U1077: 'C:\PROGRA~2\MICROS~1.0\VC\bin\amd64\cl.exe' : return code '0x2'
      Stop.
      NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64\nmake.exe"' : return code '0x2'
      Stop.
      NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64\nmake.exe"' : return code '0x2'
      Stop.
      

        Attachments

          Issue Links

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

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                liaqi Liang Qi
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes