..\GridArrayQt\GridArrayQt.cpp:618:2: warning: identifier 'nullptr' is a keyword in C++11 [-Wc++0x-compat]
bool *gp = nullptr;
^
..\GridArrayQt\GridArrayQt.cpp: In member function 'void GridArrayQt::createDrawArea()':
..\GridArrayQt\GridArrayQt.cpp:84:45: warning: lambda expressions only available with -std=c++11 or -std=gnu++11
[&](QString str){statusMsg2->setText(str);});
^
..\GridArrayQt\GridArrayQt.cpp:84:46: error: no matching function for call to 'GridArrayQt::connect(QDrawArea*&, void (QDrawArea::*)(QString&), GridArrayQt::createDrawArea()::<lambda(QString)>)'
[&](QString str){statusMsg2->setText(str);});
^
..\GridArrayQt\GridArrayQt.cpp:84:46: note: candidates are:
In file included from C:\Qt\5.4\mingw491_32\include/QtWidgets/qwidget.h:38:0,
from C:\Qt\5.4\mingw491_32\include/QtWidgets/qmainwindow.h:37,
from C:\Qt\5.4\mingw491_32\include/QtWidgets/QMainWindow:1,
from ..\GridArrayQt\GridArrayQt.h:4,
from ..\GridArrayQt\GridArrayQt.cpp:1:
C:\Qt\5.4\mingw491_32\include/QtCore/qobject.h:196: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,
^
C:\Qt\5.4\mingw491_32\include/QtCore/qobject.h:196:36: note: candidate expects 5 arguments, 3 provided
C:\Qt\5.4\mingw491_32\include/QtCore/qobject.h:199: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,
^
C:\Qt\5.4\mingw491_32\include/QtCore/qobject.h:199:36: note: candidate expects 5 arguments, 3 provided
C:\Qt\5.4\mingw491_32\include/QtCore/qobject.h:477: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,
^
C:\Qt\5.4\mingw491_32\include/QtCore/qobject.h:477:32: note: no known conversion for argument 2 from 'void (QDrawArea::*)(QString&)' to 'const char*'
C:\Qt\5.4\mingw491_32\include/QtCore/qobject.h:213:43: note: template<class Func1, class Func2> static QMetaObject::Connection QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const typename QtPrivate::FunctionPointer<Func2>::Object*, Func2, Qt::ConnectionType)
static inline QMetaObject::Connection connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal,
^
C:\Qt\5.4\mingw491_32\include/QtCore/qobject.h:213:43: note: template argument deduction/substitution failed:
..\GridArrayQt\GridArrayQt.cpp:84:46: note: candidate expects 5 arguments, 3 provided
[&](QString str){statusMsg2->setText(str);});
^
In file included from C:\Qt\5.4\mingw491_32\include/QtWidgets/qwidget.h:38:0,
from C:\Qt\5.4\mingw491_32\include/QtWidgets/qmainwindow.h:37,
from C:\Qt\5.4\mingw491_32\include/QtWidgets/QMainWindow:1,
from ..\GridArrayQt\GridArrayQt.h:4,
from ..\GridArrayQt\GridArrayQt.cpp:1:
C:\Qt\5.4\mingw491_32\include/QtCore/qobject.h:245: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)
^
C:\Qt\5.4\mingw491_32\include/QtCore/qobject.h:245:13: note: template argument deduction/substitution failed:
..\GridArrayQt\GridArrayQt.cpp: In substitution of '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) [with Func1 = void (QDrawArea::*)(QString&); Func2 = GridArrayQt::createDrawArea()::<lambda(QString)>]':
..\GridArrayQt\GridArrayQt.cpp:84:46: required from here
..\GridArrayQt\GridArrayQt.cpp:84:46: error: template argument for '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)' uses local type 'GridArrayQt::createDrawArea()::<lambda(QString)>'
[&](QString str){statusMsg2->setText(str);});
^
..\GridArrayQt\GridArrayQt.cpp:84:46: error: trying to instantiate '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)'
In file included from C:\Qt\5.4\mingw491_32\include/QtWidgets/qwidget.h:38:0,
from C:\Qt\5.4\mingw491_32\include/QtWidgets/qmainwindow.h:37,
from C:\Qt\5.4\mingw491_32\include/QtWidgets/QMainWindow:1,
from ..\GridArrayQt\GridArrayQt.h:4,
from ..\GridArrayQt\GridArrayQt.cpp:1:
C:\Qt\5.4\mingw491_32\include/QtCore/qobject.h:254: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,
^
C:\Qt\5.4\mingw491_32\include/QtCore/qobject.h:254:13: note: template argument deduction/substitution failed:
..\GridArrayQt\GridArrayQt.cpp:84:46: note: cannot convert '<lambda closure object>GridArrayQt::createDrawArea()::<lambda(QString)>{((GridArrayQt*)this)}' (type 'GridArrayQt::createDrawArea()::<lambda(QString)>') to type 'const QObject*'
[&](QString str){statusMsg2->setText(str);});
^
In file included from C:\Qt\5.4\mingw491_32\include/QtWidgets/qwidget.h:38:0,
from C:\Qt\5.4\mingw491_32\include/QtWidgets/qmainwindow.h:37,
from C:\Qt\5.4\mingw491_32\include/QtWidgets/QMainWindow:1,
from ..\GridArrayQt\GridArrayQt.h:4,
from ..\GridArrayQt\GridArrayQt.cpp:1:
C:\Qt\5.4\mingw491_32\include/QtCore/qobject.h:285: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)
^
C:\Qt\5.4\mingw491_32\include/QtCore/qobject.h:285:13: note: template argument deduction/substitution failed:
..\GridArrayQt\GridArrayQt.cpp: 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, Func2) [with Func1 = void (QDrawArea::*)(QString&); Func2 = GridArrayQt::createDrawArea()::<lambda(QString)>]':
..\GridArrayQt\GridArrayQt.cpp:84:46: required from here
..\GridArrayQt\GridArrayQt.cpp:84:46: error: template argument for '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)' uses local type 'GridArrayQt::createDrawArea()::<lambda(QString)>'
[&](QString str){statusMsg2->setText(str);});
^
..\GridArrayQt\GridArrayQt.cpp:84:46: error: trying to instantiate '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)'
In file included from C:\Qt\5.4\mingw491_32\include/QtWidgets/qwidget.h:38:0,
from C:\Qt\5.4\mingw491_32\include/QtWidgets/qmainwindow.h:37,
from C:\Qt\5.4\mingw491_32\include/QtWidgets/QMainWindow:1,
from ..\GridArrayQt\GridArrayQt.h:4,
from ..\GridArrayQt\GridArrayQt.cpp:1:
C:\Qt\5.4\mingw491_32\include/QtCore/qobject.h:293: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,
^
C:\Qt\5.4\mingw491_32\include/QtCore/qobject.h:293:13: note: template argument deduction/substitution failed:
..\GridArrayQt\GridArrayQt.cpp:84:46: note: cannot convert '<lambda closure object>GridArrayQt::createDrawArea()::<lambda(QString)>{((GridArrayQt*)this)}' (type 'GridArrayQt::createDrawArea()::<lambda(QString)>') to type 'const QObject*'
[&](QString str){statusMsg2->setText(str);});
^
..\GridArrayQt\GridArrayQt.cpp: In member function 'void GridArrayQt::setupMenu()':
..\GridArrayQt\GridArrayQt.cpp:120:2: warning: lambda expressions only available with -std=c++11 or -std=gnu++11
});
^
..\GridArrayQt\GridArrayQt.cpp:120:3: error: no matching function for call to 'GridArrayQt::connect(QAction*&, void (QAction::*)(bool), GridArrayQt::setupMenu()::<lambda()>)'
});
^
..\GridArrayQt\GridArrayQt.cpp:120:3: note: candidates are:
In file included from C:\Qt\5.4\mingw491_32\include/QtWidgets/qwidget.h:38:0,
from C:\Qt\5.4\mingw491_32\include/QtWidgets/qmainwindow.h:37,
from C:\Qt\5.4\mingw491_32\include/QtWidgets/QMainWindow:1,
from ..\GridArrayQt\GridArrayQt.h:4,
from ..\GridArrayQt\GridArrayQt.cpp:1:
C:\Qt\5.4\mingw491_32\include/QtCore/qobject.h:196: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,
^
C:\Qt\5.4\mingw491_32\include/QtCore/qobject.h:196:36: note: candidate expects 5 arguments, 3 provided
C:\Qt\5.4\mingw491_32\include/QtCore/qobject.h:199: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,
^
C:\Qt\5.4\mingw491_32\include/QtCore/qobject.h:199:36: note: candidate expects 5 arguments, 3 provided
C:\Qt\5.4\mingw491_32\include/QtCore/qobject.h:477: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,
^
C:\Qt\5.4\mingw491_32\include/QtCore/qobject.h:477:32: note: no known conversion for argument 2 from 'void (QAction::*)(bool)' to 'const char*'
C:\Qt\5.4\mingw491_32\include/QtCore/qobject.h:213:43: note: template<class Func1, class Func2> static QMetaObject::Connection QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const typename QtPrivate::FunctionPointer<Func2>::Object*, Func2, Qt::ConnectionType)
static inline QMetaObject::Connection connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal,
^
C:\Qt\5.4\mingw491_32\include/QtCore/qobject.h:213:43: note: template argument deduction/substitution failed:
..\GridArrayQt\GridArrayQt.cpp:120:3: note: candidate expects 5 arguments, 3 provided
});
^
In file included from C:\Qt\5.4\mingw491_32\include/QtWidgets/qwidget.h:38:0,
from C:\Qt\5.4\mingw491_32\include/QtWidgets/qmainwindow.h:37,
from C:\Qt\5.4\mingw491_32\include/QtWidgets/QMainWindow:1,
from ..\GridArrayQt\GridArrayQt.h:4,
from ..\GridArrayQt\GridArrayQt.cpp:1:
C:\Qt\5.4\mingw491_32\include/QtCore/qobject.h:245: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)
^
C:\Qt\5.4\mingw491_32\include/QtCore/qobject.h:245:13: note: template argument deduction/substitution failed:
..\GridArrayQt\GridArrayQt.cpp: In substitution of '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) [with Func1 = void (QAction::*)(bool); Func2 = GridArrayQt::setupMenu()::<lambda()>]':
..\GridArrayQt\GridArrayQt.cpp:120:3: required from here
..\GridArrayQt\GridArrayQt.cpp:120:3: error: template argument for '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)' uses local type 'GridArrayQt::setupMenu()::<lambda()>'
});
^
..\GridArrayQt\GridArrayQt.cpp:120:3: error: trying to instantiate '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)'
In file included from C:\Qt\5.4\mingw491_32\include/QtWidgets/qwidget.h:38:0,
from C:\Qt\5.4\mingw491_32\include/QtWidgets/qmainwindow.h:37,
from C:\Qt\5.4\mingw491_32\include/QtWidgets/QMainWindow:1,
from ..\GridArrayQt\GridArrayQt.h:4,
from ..\GridArrayQt\GridArrayQt.cpp:1:
C:\Qt\5.4\mingw491_32\include/QtCore/qobject.h:254: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,
^
C:\Qt\5.4\mingw491_32\include/QtCore/qobject.h:254:13: note: template argument deduction/substitution failed:
..\GridArrayQt\GridArrayQt.cpp:120:3: note: cannot convert '<lambda closure object>GridArrayQt::setupMenu()::<lambda()>{((GridArrayQt*)this)}' (type 'GridArrayQt::setupMenu()::<lambda()>') to type 'const QObject*'
});
^
In file included from C:\Qt\5.4\mingw491_32\include/QtWidgets/qwidget.h:38:0,
from C:\Qt\5.4\mingw491_32\include/QtWidgets/qmainwindow.h:37,
from C:\Qt\5.4\mingw491_32\include/QtWidgets/QMainWindow:1,
from ..\GridArrayQt\GridArrayQt.h:4,
from ..\GridArrayQt\GridArrayQt.cpp:1:
C:\Qt\5.4\mingw491_32\include/QtCore/qobject.h:285: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)
^
C:\Qt\5.4\mingw491_32\include/QtCore/qobject.h:285:13: note: template argument deduction/substitution failed:
..\GridArrayQt\GridArrayQt.cpp: 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, Func2) [with Func1 = void (QAction::*)(bool); Func2 = GridArrayQt::setupMenu()::<lambda()>]':
..\GridArrayQt\GridArrayQt.cpp:120:3: required from here
..\GridArrayQt\GridArrayQt.cpp:120:3: error: template argument for '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)' uses local type 'GridArrayQt::setupMenu()::<lambda()>'
});
^
..\GridArrayQt\GridArrayQt.cpp:120:3: error: trying to instantiate '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)'
In file included from C:\Qt\5.4\mingw491_32\include/QtWidgets/qwidget.h:38:0,
from C:\Qt\5.4\mingw491_32\include/QtWidgets/qmainwindow.h:37,
from C:\Qt\5.4\mingw491_32\include/QtWidgets/QMainWindow:1,
from ..\GridArrayQt\GridArrayQt.h:4,
from ..\GridArrayQt\GridArrayQt.cpp:1:
C:\Qt\5.4\mingw491_32\include/QtCore/qobject.h:293: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,
^
C:\Qt\5.4\mingw491_32\include/QtCore/qobject.h:293:13: note: template argument deduction/substitution failed:
..\GridArrayQt\GridArrayQt.cpp:120:3: note: cannot convert '<lambda closure object>GridArrayQt::setupMenu()::<lambda()>{((GridArrayQt*)this)}' (type 'GridArrayQt::setupMenu()::<lambda()>') to type 'const QObject*'
});
^
..\GridArrayQt\GridArrayQt.cpp:129:2: warning: lambda expressions only available with -std=c++11 or -std=gnu++11
});
^
..\GridArrayQt\GridArrayQt.cpp:129:3: error: no matching function for call to 'GridArrayQt::connect(QAction*&, void (QAction::*)(bool), GridArrayQt::setupMenu()::<lambda()>)'
});
^
..\GridArrayQt\GridArrayQt.cpp:129:3: note: candidates are:
In file included from C:\Qt\5.4\mingw491_32\include/QtWidgets/qwidget.h:38:0,
from C:\Qt\5.4\mingw491_32\include/QtWidgets/qmainwindow.h:37,
from C:\Qt\5.4\mingw491_32\include/QtWidgets/QMainWindow:1,
from ..\GridArrayQt\GridArrayQt.h:4,
from ..\GridArrayQt\GridArrayQt.cpp:1:
C:\Qt\5.4\mingw491_32\include/QtCore/qobject.h:196: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,
^
C:\Qt\5.4\mingw491_32\include/QtCore/qobject.h:196:36: note: candidate expects 5 arguments, 3 provided
C:\Qt\5.4\mingw491_32\include/QtCore/qobject.h:199: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,
^
C:\Qt\5.4\mingw491_32\include/QtCore/qobject.h:199:36: note: candidate expects 5 arguments, 3 provided
C:\Qt\5.4\mingw491_32\include/QtCore/qobject.h:477: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,
^
C:\Qt\5.4\mingw491_32\include/QtCore/qobject.h:477:32: note: no known conversion for argument 2 from 'void (QAction::*)(bool)' to 'const char*'
C:\Qt\5.4\mingw491_32\include/QtCore/qobject.h:213:43: note: template<class Func1, class Func2> static QMetaObject::Connection QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const typename QtPrivate::FunctionPointer<Func2>::Object*, Func2, Qt::ConnectionType)
static inline QMetaObject::Connection connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal,
^
C:\Qt\5.4\mingw491_32\include/QtCore/qobject.h:213:43: note: template argument deduction/substitution failed:
..\GridArrayQt\GridArrayQt.cpp:129:3: note: candidate expects 5 arguments, 3 provided
});
^
In file included from C:\Qt\5.4\mingw491_32\include/QtWidgets/qwidget.h:38:0,
from C:\Qt\5.4\mingw491_32\include/QtWidgets/qmainwindow.h:37,
from C:\Qt\5.4\mingw491_32\include/QtWidgets/QMainWindow:1,
from ..\GridArrayQt\GridArrayQt.h:4,
from ..\GridArrayQt\GridArrayQt.cpp:1:
C:\Qt\5.4\mingw491_32\include/QtCore/qobject.h:245: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)
^
C:\Qt\5.4\mingw491_32\include/QtCore/qobject.h:245:13: note: template argument deduction/substitution failed:
..\GridArrayQt\GridArrayQt.cpp: In substitution of '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) [with Func1 = void (QAction::*)(bool); Func2 = GridArrayQt::setupMenu()::<lambda()>]':
..\GridArrayQt\GridArrayQt.cpp:129:3: required from here
..\GridArrayQt\GridArrayQt.cpp:129:3: error: template argument for '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)' uses local type 'GridArrayQt::setupMenu()::<lambda()>'
});
^
..\GridArrayQt\GridArrayQt.cpp:129:3: error: trying to instantiate '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)'
In file included from C:\Qt\5.4\mingw491_32\include/QtWidgets/qwidget.h:38:0,
from C:\Qt\5.4\mingw491_32\include/QtWidgets/qmainwindow.h:37,
from C:\Qt\5.4\mingw491_32\include/QtWidgets/QMainWindow:1,
from ..\GridArrayQt\GridArrayQt.h:4,
from ..\GridArrayQt\GridArrayQt.cpp:1:
C:\Qt\5.4\mingw491_32\include/QtCore/qobject.h:254: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,
^
C:\Qt\5.4\mingw491_32\include/QtCore/qobject.h:254:13: note: template argument deduction/substitution failed:
..\GridArrayQt\GridArrayQt.cpp:129:3: note: cannot convert '<lambda closure object>GridArrayQt::setupMenu()::<lambda()>{((GridArrayQt*)this)}' (type 'GridArrayQt::setupMenu()::<lambda()>') to type 'const QObject*'
});
^
In file included from C:\Qt\5.4\mingw491_32\include/QtWidgets/qwidget.h:38:0,
from C:\Qt\5.4\mingw491_32\include/QtWidgets/qmainwindow.h:37,
from C:\Qt\5.4\mingw491_32\include/QtWidgets/QMainWindow:1,
from ..\GridArrayQt\GridArrayQt.h:4,
from ..\GridArrayQt\GridArrayQt.cpp:1:
C:\Qt\5.4\mingw491_32\include/QtCore/qobject.h:285: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)
^
C:\Qt\5.4\mingw491_32\include/QtCore/qobject.h:285:13: note: template argument deduction/substitution failed:
..\GridArrayQt\GridArrayQt.cpp: 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, Func2) [with Func1 = void (QAction::*)(bool); Func2 = GridArrayQt::setupMenu()::<lambda()>]':
..\GridArrayQt\GridArrayQt.cpp:129:3: required from here
..\GridArrayQt\GridArrayQt.cpp:129:3: error: template argument for '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)' uses local type 'GridArrayQt::setupMenu()::<lambda()>'
});
^
..\GridArrayQt\GridArrayQt.cpp:129:3: error: trying to instantiate '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)'
In file included from C:\Qt\5.4\mingw491_32\include/QtWidgets/qwidget.h:38:0,
from C:\Qt\5.4\mingw491_32\include/QtWidgets/qmainwindow.h:37,
from C:\Qt\5.4\mingw491_32\include/QtWidgets/QMainWindow:1,
from ..\GridArrayQt\GridArrayQt.h:4,
from ..\GridArrayQt\GridArrayQt.cpp:1:
C:\Qt\5.4\mingw491_32\include/QtCore/qobject.h:293: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,
^
C:\Qt\5.4\mingw491_32\include/QtCore/qobject.h:293:13: note: template argument deduction/substitution failed:
..\GridArrayQt\GridArrayQt.cpp:129:3: note: cannot convert '<lambda closure object>GridArrayQt::setupMenu()::<lambda()>{((GridArrayQt*)this)}' (type 'GridArrayQt::setupMenu()::<lambda()>') to type 'const QObject*'
});
^
..\GridArrayQt\GridArrayQt.cpp:155:91: warning: lambda expressions only available with -std=c++11 or -std=gnu++11
connect(qEdit_Clear,&QAction::triggered,[=]{pDrawArea->clearGrid();pDrawArea->drawGrid();});
^
..\GridArrayQt\GridArrayQt.cpp:155:92: error: no matching function for call to 'GridArrayQt::connect(QAction*&, void (QAction::*)(bool), GridArrayQt::setupMenu()::<lambda()>)'
connect(qEdit_Clear,&QAction::triggered,[=]{pDrawArea->clearGrid();pDrawArea->drawGrid();});
^
..\GridArrayQt\GridArrayQt.cpp:155:92: note: candidates are:
In file included from C:\Qt\5.4\mingw491_32\include/QtWidgets/qwidget.h:38:0,
from C:\Qt\5.4\mingw491_32\include/QtWidgets/qmainwindow.h:37,
from C:\Qt\5.4\mingw491_32\include/QtWidgets/QMainWindow:1,
from ..\GridArrayQt\GridArrayQt.h:4,
from ..\GridArrayQt\GridArrayQt.cpp:1:
C:\Qt\5.4\mingw491_32\include/QtCore/qobject.h:196: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,
^
C:\Qt\5.4\mingw491_32\include/QtCore/qobject.h:196:36: note: candidate expects 5 arguments, 3 provided
C:\Qt\5.4\mingw491_32\include/QtCore/qobject.h:199: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,
^
C:\Qt\5.4\mingw491_32\include/QtCore/qobject.h:199:36: note: candidate expects 5 arguments, 3 provided
C:\Qt\5.4\mingw491_32\include/QtCore/qobject.h:477: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,
^
C:\Qt\5.4\mingw491_32\include/QtCore/qobject.h:477:32: note: no known conversion for argument 2 from 'void (QAction::*)(bool)' to 'const char*'
C:\Qt\5.4\mingw491_32\include/QtCore/qobject.h:213:43: note: template<class Func1, class Func2> static QMetaObject::Connection QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const typename QtPrivate::FunctionPointer<Func2>::Object*, Func2, Qt::ConnectionType)
static inline QMetaObject::Connection connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal,
^
C:\Qt\5.4\mingw491_32\include/QtCore/qobject.h:213:43: note: template argument deduction/substitution failed:
..\GridArrayQt\GridArrayQt.cpp:155:92: note: candidate expects 5 arguments, 3 provided
connect(qEdit_Clear,&QAction::triggered,[=]{pDrawArea->clearGrid();pDrawArea->drawGrid();});
^
In file included from C:\Qt\5.4\mingw491_32\include/QtWidgets/qwidget.h:38:0,
from C:\Qt\5.4\mingw491_32\include/QtWidgets/qmainwindow.h:37,
from C:\Qt\5.4\mingw491_32\include/QtWidgets/QMainWindow:1,
from ..\GridArrayQt\GridArrayQt.h:4,
from ..\GridArrayQt\GridArrayQt.cpp:1:
C:\Qt\5.4\mingw491_32\include/QtCore/qobject.h:245: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)
^
C:\Qt\5.4\mingw491_32\include/QtCore/qobject.h:245:13: note: template argument deduction/substitution failed:
..\GridArrayQt\GridArrayQt.cpp: In substitution of '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) [with Func1 = void (QAction::*)(bool); Func2 = GridArrayQt::setupMenu()::<lambda()>]':
..\GridArrayQt\GridArrayQt.cpp:155:92: required from here
..\GridArrayQt\GridArrayQt.cpp:155:92: error: template argument for '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)' uses local type 'GridArrayQt::setupMenu()::<lambda()>'
connect(qEdit_Clear,&QAction::triggered,[=]{pDrawArea->clearGrid();pDrawArea->drawGrid();});
^
..\GridArrayQt\GridArrayQt.cpp:155:92: error: trying to instantiate '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)'
In file included from C:\Qt\5.4\mingw491_32\include/QtWidgets/qwidget.h:38:0,
from C:\Qt\5.4\mingw491_32\include/QtWidgets/qmainwindow.h:37,
from C:\Qt\5.4\mingw491_32\include/QtWidgets/QMainWindow:1,
from ..\GridArrayQt\GridArrayQt.h:4,
from ..\GridArrayQt\GridArrayQt.cpp:1:
C:\Qt\5.4\mingw491_32\include/QtCore/qobject.h:254: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,
^
C:\Qt\5.4\mingw491_32\include/QtCore/qobject.h:254:13: note: template argument deduction/substitution failed:
..\GridArrayQt\GridArrayQt.cpp:155:92: note: cannot convert '<lambda closure object>GridArrayQt::setupMenu()::<lambda()>{((GridArrayQt*)this)}' (type 'GridArrayQt::setupMenu()::<lambda()>') to type 'const QObject*'
connect(qEdit_Clear,&QAction::triggered,[=]{pDrawArea->clearGrid();pDrawArea->drawGrid();});
^
In file included from C:\Qt\5.4\mingw491_32\include/QtWidgets/qwidget.h:38:0,
from C:\Qt\5.4\mingw491_32\include/QtWidgets/qmainwindow.h:37,
from C:\Qt\5.4\mingw491_32\include/QtWidgets/QMainWindow:1,
from ..\GridArrayQt\GridArrayQt.h:4,
from ..\GridArrayQt\GridArrayQt.cpp:1:
C:\Qt\5.4\mingw491_32\include/QtCore/qobject.h:285: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)
^
C:\Qt\5.4\mingw491_32\include/QtCore/qobject.h:285:13: note: template argument deduction/substitution failed:
..\GridArrayQt\GridArrayQt.cpp: 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, Func2) [with Func1 = void (QAction::*)(bool); Func2 = GridArrayQt::setupMenu()::<lambda()>]':
..\GridArrayQt\GridArrayQt.cpp:155:92: required from here
..\GridArrayQt\GridArrayQt.cpp:155:92: error: template argument for '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)' uses local type 'GridArrayQt::setupMenu()::<lambda()>'
connect(qEdit_Clear,&QAction::triggered,[=]{pDrawArea->clearGrid();pDrawArea->drawGrid();});
^
..\GridArrayQt\GridArrayQt.cpp:155:92: error: trying to instantiate '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)'
In file included from C:\Qt\5.4\mingw491_32\include/QtWidgets/qwidget.h:38:0,
from C:\Qt\5.4\mingw491_32\include/QtWidgets/qmainwindow.h:37,
from C:\Qt\5.4\mingw491_32\include/QtWidgets/QMainWindow:1,
from ..\GridArrayQt\GridArrayQt.h:4,
from ..\GridArrayQt\GridArrayQt.cpp:1:
C:\Qt\5.4\mingw491_32\include/QtCore/qobject.h:293: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,
^
C:\Qt\5.4\mingw491_32\include/QtCore/qobject.h:293:13: note: template argument deduction/substitution failed:
..\GridArrayQt\GridArrayQt.cpp:155:92: note: cannot convert '<lambda closure object>GridArrayQt::setupMenu()::<lambda()>{((GridArrayQt*)this)}' (type 'GridArrayQt::setupMenu()::<lambda()>') to type 'const QObject*'
connect(qEdit_Clear,&QAction::triggered,[=]{pDrawArea->clearGrid();pDrawArea->drawGrid();});
^
..\GridArrayQt\GridArrayQt.cpp:156:71: warning: lambda expressions only available with -std=c++11 or -std=gnu++11
connect(qEdit_ZoomIn,&QAction::triggered,[=]{pDrawArea->zoomInGrid();});
^
..\GridArrayQt\GridArrayQt.cpp:156:72: error: no matching function for call to 'GridArrayQt::connect(QAction*&, void (QAction::*)(bool), GridArrayQt::setupMenu()::<lambda()>)'
connect(qEdit_ZoomIn,&QAction::triggered,[=]{pDrawArea->zoomInGrid();});
^
..\GridArrayQt\GridArrayQt.cpp:156:72: note: candidates are:
In file included from C:\Qt\5.4\mingw491_32\include/QtWidgets/qwidget.h:38:0,
from C:\Qt\5.4\mingw491_32\include/QtWidgets/qmainwindow.h:37,
from C:\Qt\5.4\mingw491_32\include/QtWidgets/QMainWindow:1,
from ..\GridArrayQt\GridArrayQt.h:4,
from ..\GridArrayQt\GridArrayQt.cpp:1:
C:\Qt\5.4\mingw491_32\include/QtCore/qobject.h:196: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,
^