F:\Projets\TestElementWidget\MainWindow.cpp: In constructor 'MainWindow::MainWindow(QWidget*)':
F:\Projets\TestElementWidget\MainWindow.cpp:13:107: error: no matching function for call to 'MainWindow::connect(Element<QPushButton*>*&, void (SignalSlotBase::*)(QVariant), MainWindow* const, <unresolved overloaded function type>)'
QObject::connect(m_test, &Element<QPushButton*>::elementClicked, this, &MainWindow::traitementElement );
^
F:\Projets\TestElementWidget\MainWindow.cpp:13:107: note: candidates are:
In file included from ..\..\..\Soft\Qt\Qt5.3.2\5.3\mingw482_32\include\QtCore/QObject:1:0,
from F:\Projets\TestElementWidget\../WIN9010/Utility/SignalSlotBase.h:4,
from F:\Projets\TestElementWidget\../WIN9010/Utility/Element.h:4,
from F:\Projets\TestElementWidget\MainWindow.h:4,
from F:\Projets\TestElementWidget\MainWindow.cpp:1:
..\..\..\Soft\Qt\Qt5.3.2\5.3\mingw482_32\include\QtCore/qobject.h:198:36: note: static QMetaObject::Connection QObject::connect(const QObject*, const char*, const QObject*, const char*, Qt::ConnectionType)
static QMetaObject::Connection connect(const QObject *sender, const char *signal,
^
..\..\..\Soft\Qt\Qt5.3.2\5.3\mingw482_32\include\QtCore/qobject.h:198:36: note: no known conversion for argument 2 from 'void (SignalSlotBase::*)(QVariant)' to 'const char*'
..\..\..\Soft\Qt\Qt5.3.2\5.3\mingw482_32\include\QtCore/qobject.h:201:36: note: static QMetaObject::Connection QObject::connect(const QObject*, const QMetaMethod&, const QObject*, const QMetaMethod&, Qt::ConnectionType)
static QMetaObject::Connection connect(const QObject *sender, const QMetaMethod &signal,
^
..\..\..\Soft\Qt\Qt5.3.2\5.3\mingw482_32\include\QtCore/qobject.h:201:36: note: no known conversion for argument 2 from 'void (SignalSlotBase::*)(QVariant)' to 'const QMetaMethod&'
..\..\..\Soft\Qt\Qt5.3.2\5.3\mingw482_32\include\QtCore/qobject.h:479:32: note: QMetaObject::Connection QObject::connect(const QObject*, const char*, const char*, Qt::ConnectionType) const
inline QMetaObject::Connection QObject::connect(const QObject *asender, const char *asignal,
^
..\..\..\Soft\Qt\Qt5.3.2\5.3\mingw482_32\include\QtCore/qobject.h:479:32: note: no known conversion for argument 2 from 'void (SignalSlotBase::*)(QVariant)' to 'const char*'
..\..\..\Soft\Qt\Qt5.3.2\5.3\mingw482_32\include\QtCore/qobject.h:215:43: note: static QMetaObject::Connection QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const typename QtPrivate::FunctionPointer<Func2>::Object*, Func2, Qt::ConnectionType) [with Func1 = void (SignalSlotBase::*)(QVariant); Func2 = void (MainWindow::*)(QVariant); typename QtPrivate::FunctionPointer<Func>::Object = SignalSlotBase; typename QtPrivate::FunctionPointer<Func2>::Object = MainWindow]
static inline QMetaObject::Connection connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal,
^
..\..\..\Soft\Qt\Qt5.3.2\5.3\mingw482_32\include\QtCore/qobject.h:215:43: note: no known conversion for argument 4 from '<unresolved overloaded function type>' to 'void (MainWindow::*)(QVariant)'
..\..\..\Soft\Qt\Qt5.3.2\5.3\mingw482_32\include\QtCore/qobject.h:247:13: note: template<class Func1, class Func2> static typename QtPrivate::QEnableIf<((int)(QtPrivate::FunctionPointer<Func2>::ArgumentCount) >= 0), QMetaObject::Connection>::Type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, Func2)
connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, Func2 slot)
^
..\..\..\Soft\Qt\Qt5.3.2\5.3\mingw482_32\include\QtCore/qobject.h:247:13: note: template argument deduction/substitution failed:
F:\Projets\TestElementWidget\MainWindow.cpp:13:107: note: candidate expects 3 arguments, 4 provided
QObject::connect(m_test, &Element<QPushButton*>::elementClicked, this, &MainWindow::traitementElement );
^
In file included from ..\..\..\Soft\Qt\Qt5.3.2\5.3\mingw482_32\include\QtCore/QObject:1:0,
from F:\Projets\TestElementWidget\../WIN9010/Utility/SignalSlotBase.h:4,
from F:\Projets\TestElementWidget\../WIN9010/Utility/Element.h:4,
from F:\Projets\TestElementWidget\MainWindow.h:4,
from F:\Projets\TestElementWidget\MainWindow.cpp:1:
..\..\..\Soft\Qt\Qt5.3.2\5.3\mingw482_32\include\QtCore/qobject.h:256:13: note: template<class Func1, class Func2> static typename QtPrivate::QEnableIf<(((int)(QtPrivate::FunctionPointer<Func2>::ArgumentCount) >= 0) && (! QtPrivate::FunctionPointer<Func2>::IsPointerToMemberFunction)), QMetaObject::Connection>::Type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const QObject*, Func2, Qt::ConnectionType)
connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, const QObject *context, Func2 slot,
^
..\..\..\Soft\Qt\Qt5.3.2\5.3\mingw482_32\include\QtCore/qobject.h:256:13: note: template argument deduction/substitution failed:
..\..\..\Soft\Qt\Qt5.3.2\5.3\mingw482_32\include\QtCore/qobject.h: In substitution of 'template<class Func1, class Func2> static typename QtPrivate::QEnableIf<(((int)(QtPrivate::FunctionPointer<Func2>::ArgumentCount) >= 0) && (! QtPrivate::FunctionPointer<Func2>::IsPointerToMemberFunction)), QMetaObject::Connection>::Type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const QObject*, Func2, Qt::ConnectionType) [with Func1 = void (SignalSlotBase::*)(QVariant); Func2 = void (MainWindow::*)(QVariant)]':
F:\Projets\TestElementWidget\MainWindow.cpp:13:107: required from here
..\..\..\Soft\Qt\Qt5.3.2\5.3\mingw482_32\include\QtCore/qobject.h:256:13: error: invalid use of incomplete type 'struct QtPrivate::QEnableIf<false, QMetaObject::Connection>'
Makefile.Debug:447: recipe for target 'debug/MainWindow.o' failed
In file included from ..\..\..\Soft\Qt\Qt5.3.2\5.3\mingw482_32\include/QtCore/qnamespace.h:45:0,
from ..\..\..\Soft\Qt\Qt5.3.2\5.3\mingw482_32\include/QtCore/qobjectdefs.h:49,
from ..\..\..\Soft\Qt\Qt5.3.2\5.3\mingw482_32\include\QtCore/qobject.h:48,
from ..\..\..\Soft\Qt\Qt5.3.2\5.3\mingw482_32\include\QtCore/QObject:1,
from F:\Projets\TestElementWidget\../WIN9010/Utility/SignalSlotBase.h:4,
from F:\Projets\TestElementWidget\../WIN9010/Utility/Element.h:4,
from F:\Projets\TestElementWidget\MainWindow.h:4,
from F:\Projets\TestElementWidget\MainWindow.cpp:1:
..\..\..\Soft\Qt\Qt5.3.2\5.3\mingw482_32\include/QtCore/qglobal.h:1040:45: error: declaration of 'struct QtPrivate::QEnableIf<false, QMetaObject::Connection>'
template <bool B, typename T = void> struct QEnableIf;
^
In file included from ..\..\..\Soft\Qt\Qt5.3.2\5.3\mingw482_32\include\QtCore/QObject:1:0,
from F:\Projets\TestElementWidget\../WIN9010/Utility/SignalSlotBase.h:4,
from F:\Projets\TestElementWidget\../WIN9010/Utility/Element.h:4,
from F:\Projets\TestElementWidget\MainWindow.h:4,
from F:\Projets\TestElementWidget\MainWindow.cpp:1:
..\..\..\Soft\Qt\Qt5.3.2\5.3\mingw482_32\include\QtCore/qobject.h:287:13: note: template<class Func1, class Func2> static typename QtPrivate::QEnableIf<(QtPrivate::FunctionPointer<Func2>::ArgumentCount == (-1)), QMetaObject::Connection>::Type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, Func2)
connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, Func2 slot)
^
..\..\..\Soft\Qt\Qt5.3.2\5.3\mingw482_32\include\QtCore/qobject.h:287:13: note: template argument deduction/substitution failed:
F:\Projets\TestElementWidget\MainWindow.cpp:13:107: note: candidate expects 3 arguments, 4 provided
QObject::connect(m_test, &Element<QPushButton*>::elementClicked, this, &MainWindow::traitementElement );
^
In file included from ..\..\..\Soft\Qt\Qt5.3.2\5.3\mingw482_32\include\QtCore/QObject:1:0,
from F:\Projets\TestElementWidget\../WIN9010/Utility/SignalSlotBase.h:4,
from F:\Projets\TestElementWidget\../WIN9010/Utility/Element.h:4,
from F:\Projets\TestElementWidget\MainWindow.h:4,
from F:\Projets\TestElementWidget\MainWindow.cpp:1:
..\..\..\Soft\Qt\Qt5.3.2\5.3\mingw482_32\include\QtCore/qobject.h:295:13: note: template<class Func1, class Func2> 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)
connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, const QObject *context, Func2 slot,
^
..\..\..\Soft\Qt\Qt5.3.2\5.3\mingw482_32\include\QtCore/qobject.h:295:13: note: template argument deduction/substitution failed:
..\..\..\Soft\Qt\Qt5.3.2\5.3\mingw482_32\include\QtCore/qobject.h: In substitution of 'template<class Func1, class Func2> 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 (SignalSlotBase::*)(QVariant); Func2 = void (MainWindow::*)(QVariant)]':
F:\Projets\TestElementWidget\MainWindow.cpp:13:107: required from here
..\..\..\Soft\Qt\Qt5.3.2\5.3\mingw482_32\include\QtCore/qobject.h:295:13: error: invalid use of incomplete type 'struct QtPrivate::QEnableIf<false, QMetaObject::Connection>'
In file included from ..\..\..\Soft\Qt\Qt5.3.2\5.3\mingw482_32\include/QtCore/qnamespace.h:45:0,
from ..\..\..\Soft\Qt\Qt5.3.2\5.3\mingw482_32\include/QtCore/qobjectdefs.h:49,
from ..\..\..\Soft\Qt\Qt5.3.2\5.3\mingw482_32\include\QtCore/qobject.h:48,
from ..\..\..\Soft\Qt\Qt5.3.2\5.3\mingw482_32\include\QtCore/QObject:1,
from F:\Projets\TestElementWidget\../WIN9010/Utility/SignalSlotBase.h:4,
from F:\Projets\TestElementWidget\../WIN9010/Utility/Element.h:4,
from F:\Projets\TestElementWidget\MainWindow.h:4,
from F:\Projets\TestElementWidget\MainWindow.cpp:1:
..\..\..\Soft\Qt\Qt5.3.2\5.3\mingw482_32\include/QtCore/qglobal.h:1040:45: error: declaration of 'struct QtPrivate::QEnableIf<false, QMetaObject::Connection>'
template <bool B, typename T = void> struct QEnableIf;
^
F:\Projets\TestElementWidget\MainWindow.cpp: In member function 'void MainWindow::traitementElement(QVariant)':
F:\Projets\TestElementWidget\MainWindow.cpp:31:24: error: request for member 'isChecked' in 'sender.Element<T>::info<QPushButton*>()->', which is of pointer type 'QPushButton*' (maybe you meant to use '->' ?)
if (sender.info()->isChecked() ) {
^
mingw32-make[1]: Leaving directory 'D:/Dev/Build/TestElement'
Makefile:34: recipe for target 'debug' failed
In file included from ..\..\..\Soft\Qt\Qt5.3.2\5.3\mingw482_32\include\QtGui/qevent.h:52:0,
from ..\..\..\Soft\Qt\Qt5.3.2\5.3\mingw482_32\include\QtGui/QMouseEvent:1,
from F:\Projets\TestElementWidget\../WIN9010/Utility/Element.h:10,
from F:\Projets\TestElementWidget\MainWindow.h:4,
from F:\Projets\TestElementWidget\MainWindow.cpp:1:
F:\Projets\TestElementWidget\../WIN9010/Utility/Element.h: In instantiation of 'void Element<T>::mouseReleaseEvent(QMouseEvent*) [with T = QPushButton*]':
F:\Projets\TestElementWidget\MainWindow.cpp:37:1: required from here
..\..\..\Soft\Qt\Qt5.3.2\5.3\mingw482_32\include/QtCore/qvariant.h:466:12: error: 'QVariant::QVariant(void*)' is private
inline QVariant(void *) Q_DECL_EQ_DELETE;
^
In file included from F:\Projets\TestElementWidget\MainWindow.h:4:0,
from F:\Projets\TestElementWidget\MainWindow.cpp:1:
F:\Projets\TestElementWidget\../WIN9010/Utility/Element.h:103:10: error: within this context
emit elementClicked(QVariant(this));
^
F:\Projets\TestElementWidget\../WIN9010/Utility/Element.h:103:10: error: use of deleted function 'QVariant::QVariant(void*)'
In file included from ..\..\..\Soft\Qt\Qt5.3.2\5.3\mingw482_32\include\QtGui/qevent.h:52:0,
from ..\..\..\Soft\Qt\Qt5.3.2\5.3\mingw482_32\include\QtGui/QMouseEvent:1,
from F:\Projets\TestElementWidget\../WIN9010/Utility/Element.h:10,
from F:\Projets\TestElementWidget\MainWindow.h:4,
from F:\Projets\TestElementWidget\MainWindow.cpp:1:
..\..\..\Soft\Qt\Qt5.3.2\5.3\mingw482_32\include/QtCore/qvariant.h:466:12: error: declared here
inline QVariant(void *) Q_DECL_EQ_DELETE;
^
mingw32-make[1]: *** [debug/MainWindow.o] Error 1
mingw32-make: *** [debug] Error 2
11:50:00: Le processus "D:\Soft\Qt\Qt5.3.2\Tools\mingw482_32\bin\mingw32-make.exe" s'est terminé avec le code 2.
Erreur lors de la compilation/déploiement du projet TestElementWidget (kit : Desktop Qt 5.3 MinGW 32bit)
When executing step "Make"
11:50:00: Temps écoulé : 00:07.
Partager