Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- In file included from C:/Qt/Qt5.7.0/5.7/mingw53_32/include/QtGui/qwindowdefs.h:43:0,
- from C:/Qt/Qt5.7.0/5.7/mingw53_32/include/QtWidgets/qwidget.h:43,
- from C:/Qt/Qt5.7.0/5.7/mingw53_32/include/QtWidgets/qmenu.h:43,
- from C:/Qt/Qt5.7.0/5.7/mingw53_32/include/QtWidgets/QMenu:1,
- from ../Project/mymenu.h:4,
- from ../Project/mymenu.cpp:1:
- C:/Qt/Qt5.7.0/5.7/mingw53_32/include/QtCore/qobject.h: In instantiation of 'static typename QtPrivate::QEnableIf<(QtPrivate::FunctionPointer<Func2>::ArgumentCount == (-1)), QMetaObject::Connection>::Type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const QObject*, Func2, Qt::ConnectionType) [with Func1 = void (QAction::*)(bool); Func2 = const char*; typename QtPrivate::QEnableIf<(QtPrivate::FunctionPointer<Func2>::ArgumentCount == (-1)), QMetaObject::Connection>::Type = QMetaObject::Connection; typename QtPrivate::FunctionPointer<Func>::Object = QAction]':
- C:/Qt/Qt5.7.0/5.7/mingw53_32/include/QtCore/qobject.h:293:74: required from 'static typename QtPrivate::QEnableIf<(QtPrivate::FunctionPointer<Func2>::ArgumentCount == (-1)), QMetaObject::Connection>::Type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, Func2) [with Func1 = void (QAction::*)(bool); Func2 = const char*; typename QtPrivate::QEnableIf<(QtPrivate::FunctionPointer<Func2>::ArgumentCount == (-1)), QMetaObject::Connection>::Type = QMetaObject::Connection; typename QtPrivate::FunctionPointer<Func>::Object = QAction]'
- C:/Qt/Qt5.7.0/5.7/mingw53_32/include/QtWidgets/qmenu.h:120:9: required from 'QAction* QMenu::addAction(const QString&, Func1, const QKeySequence&) [with Func1 = const char*]'
- ../Project/mymenu.cpp:35:39: required from here
- C:/Qt/Qt5.7.0/5.7/mingw53_32/include/QtCore/qglobal.h:746:47: error: static assertion failed: Signal and slot arguments are not compatible.
- #define Q_STATIC_ASSERT_X(Condition, Message) static_assert(bool(Condition), Message)
- ^
- C:/Qt/Qt5.7.0/5.7/mingw53_32/include/QtCore/qobject.h:306:9: note: in expansion of macro 'Q_STATIC_ASSERT_X'
- Q_STATIC_ASSERT_X((FunctorArgumentCount >= 0),
- ^
- In file included from C:/Qt/Qt5.7.0/5.7/mingw53_32/include/QtCore/qobjectdefs.h:50:0,
- from C:/Qt/Qt5.7.0/5.7/mingw53_32/include/QtGui/qwindowdefs.h:44,
- from C:/Qt/Qt5.7.0/5.7/mingw53_32/include/QtWidgets/qwidget.h:43,
- from C:/Qt/Qt5.7.0/5.7/mingw53_32/include/QtWidgets/qmenu.h:43,
- from C:/Qt/Qt5.7.0/5.7/mingw53_32/include/QtWidgets/QMenu:1,
- from ../Project/mymenu.h:4,
- from ../Project/mymenu.cpp:1:
- C:/Qt/Qt5.7.0/5.7/mingw53_32/include/QtCore/qobjectdefs_impl.h: In instantiation of 'struct QtPrivate::FunctorReturnType<const char*, QtPrivate::List<> >':
- C:/Qt/Qt5.7.0/5.7/mingw53_32/include/QtCore/qobject.h:309:158: required from 'static typename QtPrivate::QEnableIf<(QtPrivate::FunctionPointer<Func2>::ArgumentCount == (-1)), QMetaObject::Connection>::Type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const QObject*, Func2, Qt::ConnectionType) [with Func1 = void (QAction::*)(bool); Func2 = const char*; typename QtPrivate::QEnableIf<(QtPrivate::FunctionPointer<Func2>::ArgumentCount == (-1)), QMetaObject::Connection>::Type = QMetaObject::Connection; typename QtPrivate::FunctionPointer<Func>::Object = QAction]'
- C:/Qt/Qt5.7.0/5.7/mingw53_32/include/QtCore/qobject.h:293:74: required from 'static typename QtPrivate::QEnableIf<(QtPrivate::FunctionPointer<Func2>::ArgumentCount == (-1)), QMetaObject::Connection>::Type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, Func2) [with Func1 = void (QAction::*)(bool); Func2 = const char*; typename QtPrivate::QEnableIf<(QtPrivate::FunctionPointer<Func2>::ArgumentCount == (-1)), QMetaObject::Connection>::Type = QMetaObject::Connection; typename QtPrivate::FunctionPointer<Func>::Object = QAction]'
- C:/Qt/Qt5.7.0/5.7/mingw53_32/include/QtWidgets/qmenu.h:120:9: required from 'QAction* QMenu::addAction(const QString&, Func1, const QKeySequence&) [with Func1 = const char*]'
- ../Project/mymenu.cpp:35:39: required from here
- C:/Qt/Qt5.7.0/5.7/mingw53_32/include/QtCore/qobjectdefs_impl.h:632:78: error: request for member 'operator()' in 'QtPrivate::FunctorReturnType<Functor, QtPrivate::List<Tail ...> >::dummy<const char*>()', which is of non-class type 'const char*'
- typedef decltype(dummy<Functor>().operator()((dummy<ArgList>())...)) Value;
- ^
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement