I was able to work around that error but now hitting the following, and the
crumb trail I followed seems to indicate that this needs to be fixed in
Qt5, not PySide2[1]

In file included from
/builddir/build/BUILD/pyside-setup-opensource-src-5.15.10/redhat-linux-build/sources/pyside2/PySide2/QtGui/PySide2/QtGui/qdragmoveevent_wrapper.cpp:63:
/builddir/build/BUILD/pyside-setup-opensource-src-5.15.10/redhat-linux-build/sources/pyside2/PySide2/QtGui/PySide2/QtGui/qdragmoveevent_wrapper.h:55:220:
error: no member named 'DragMove' in 'QOpenGLShader'; did you mean simply
'DragMove'?    QDragMoveEventWrapper(const QPoint & pos,
QFlags<Qt::DropAction> actions, const QMimeData * data,
QFlags<Qt::MouseButton> buttons, QFlags<Qt::KeyboardModifier> modifiers,
QFlags<QOpenGLShader::ShaderTypeBit> type = QOpenGLShader::DragMove);



 ^~~~~~~~~~~~~~~~~~~~~~~


                                                                   DragMove
/usr/include/qt5/QtCore/qcoreevent.h:107:9: note: 'DragMove' declared here
        DragMove = 61,                          // drag moves in widget
        ^
In file included from
/builddir/build/BUILD/pyside-setup-opensource-src-5.15.10/redhat-linux-build/sources/pyside2/PySide2/QtGui/PySide2/QtGui/qdragmoveevent_wrapper.cpp:63:
/builddir/build/BUILD/pyside-setup-opensource-src-5.15.10/redhat-linux-build/sources/pyside2/PySide2/QtGui/PySide2/QtGui/qdragmoveevent_wrapper.h:55:213:
error: no viable conversion from 'QEvent::Type' to
'QFlags<QOpenGLShader::ShaderTypeBit>'
    QDragMoveEventWrapper(const QPoint & pos, QFlags<Qt::DropAction>
actions, const QMimeData * data, QFlags<Qt::MouseButton> buttons,
QFlags<Qt::KeyboardModifier> modifiers,
QFlags<QOpenGLShader::ShaderTypeBit> type = QOpenGLShader::DragMove);


                                                            ^
      ~~~~~~~~
/usr/include/qt5/QtCore/qflags.h:89:7: note: candidate constructor (the
implicit copy constructor) not viable: no known conversion from
'QEvent::Type' to 'const QFlags<ShaderTypeBit> &' for 1st argument
class QFlags
      ^
/usr/include/qt5/QtCore/qflags.h:89:7: note: candidate constructor (the
implicit move constructor) not viable: no known conversion from
'QEvent::Type' to 'QFlags<ShaderTypeBit> &&' for 1st argument
/usr/include/qt5/QtCore/qflags.h:121:29: note: candidate constructor not
viable: no known conversion from 'QEvent::Type' to
'QOpenGLShader::ShaderTypeBit' for 1st argument
    Q_DECL_CONSTEXPR inline QFlags(Enum flags) noexcept : i(Int(flags)) {}
                            ^
/usr/include/qt5/QtCore/qflags.h:123:80: note: candidate constructor not
viable: no known conversion from 'QEvent::Type' to 'Zero' (aka 'int
(QFlags<QOpenGLShader::ShaderTypeBit>::Private::*)') for 1st argument
    QT_DEPRECATED_X("Use default constructor instead") Q_DECL_CONSTEXPR
inline QFlags(Zero) noexcept : i(0) {}

   ^
/usr/include/qt5/QtCore/qflags.h:125:29: note: candidate constructor not
viable: no known conversion from 'QEvent::Type' to 'QFlag' for 1st argument
    Q_DECL_CONSTEXPR inline QFlags(QFlag flag) noexcept : i(flag) {}
                            ^
/usr/include/qt5/QtCore/qflags.h:127:29: note: candidate constructor not
viable: no known conversion from 'QEvent::Type' to
'std::initializer_list<ShaderTypeBit>' for 1st argument
    Q_DECL_CONSTEXPR inline QFlags(std::initializer_list<Enum> flags)
noexcept
                            ^
/builddir/build/BUILD/pyside-setup-opensource-src-5.15.10/redhat-linux-build/sources/pyside2/PySide2/QtGui/PySide2/QtGui/qdragmoveevent_wrapper.h:55:213:
note: passing argument to parameter 'type' here
    QDragMoveEventWrapper(const QPoint & pos, QFlags<Qt::DropAction>
actions, const QMimeData * data, QFlags<Qt::MouseButton> buttons,
QFlags<Qt::KeyboardModifier> modifiers,
QFlags<QOpenGLShader::ShaderTypeBit> type = QOpenGLShader::DragMove);


                                                            ^
/builddir/build/BUILD/pyside-setup-opensource-src-5.15.10/redhat-linux-build/sources/pyside2/PySide2/QtGui/PySide2/QtGui/qdragmoveevent_wrapper.cpp:103:240:
error: no matching constructor for initialization of 'QDragMoveEvent'
QDragMoveEventWrapper::QDragMoveEventWrapper(const QPoint & pos,
QFlags<Qt::DropAction> actions, const QMimeData * data,
QFlags<Qt::MouseButton> buttons, QFlags<Qt::KeyboardModifier> modifiers,
QFlags<QOpenGLShader::ShaderTypeBit> type) : QDragMoveEvent(pos, actions,
data, buttons, modifiers, type)

^              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/qt5/QtGui/qevent.h:684:5: note: candidate constructor not
viable: no known conversion from 'QFlags<QOpenGLShader::ShaderTypeBit>' to
'Type' for 6th argument
    QDragMoveEvent(const QPoint &pos, Qt::DropActions actions, const
QMimeData *data,

In the OpenMandriva package they have the following:
# FIXME This patch is completely meaningless in the context of C++.
# It is a workaround for a pyside2 build failure with Qt 5.15.9,
# pyside2 5.15.9, clang 16.0.1 -- the generated code thinks a
# not otherwise specified "Type" is in fact a
# QFlags<QOpenGLShader::ShaderTypeBit>, causing many functions
# looking for a QEvent::Type to be bogus.
# Since there are no side effects to superfluously specifying
# QEvent::Type instead of plain "Type" in a QEvent derived class,
# this workaround is acceptable, if not nice.
Patch5: qtbase-5.15.9-work-around-pyside2-brokenness.patch

Thanks,
Richard

[1]
https://github.com/OpenMandrivaAssociation/qt5-qtbase/blob/master/qtbase-5.15.9-work-around-pyside2-brokenness.patch
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to