E:\Programs\Qt\Qt5.2.1\5.2.1\msvc2010_opengl\include\QtCore\qobject.h:249: error: C2665: 'QObject::connect' : none of the 4 overloads could convert all the argument types
E:\Programs\Qt\Qt5.2.1\5.2.1\msvc2010_opengl\include\QtCore/qobject.h(215): could be 'QMetaObject::Connection QObject::connect<Func1,Func2>(const QAction *,Func1,const MainWindow *,Func2,Qt::ConnectionType)'
with
[
Func1
=void (__thiscall
QAction::* )(bool),
Func2=void (__thiscall MainWindow::* )(void)
]
E:\Programs\Qt\Qt5.2.1\5.2.1\msvc2010_opengl\include\QtCore/qobject.h(198): or 'QMetaObject::Connection QObject::connect(const QObject *,const char *,const QObject *,const char *,Qt::ConnectionType)'
E:\Programs\Qt\Qt5.2.1\5.2.1\msvc2010_opengl\include\QtCore/qobject.h(201): or 'QMetaObject::Connection QObject::connect(const QObject *,const QMetaMethod &,const QObject *,const QMetaMethod &,Qt::ConnectionType)'
while trying to match the argument list '(const QAction *, void (__thiscall QAction::* )(bool), const QAction *, void (__thiscall MainWindow::* )(void), Qt::ConnectionType)'
E:\Programs\Qt\Qt5.2.1\5.2.1\msvc2010_opengl\include\QtCore\qobject.h:249: error: C2665: 'QObject::connect' : none of the 4 overloads could convert all the argument types
E:\Programs\Qt\Qt5.2.1\5.2.1\msvc2010_opengl\include\QtCore/qobject.h(215): could be 'QMetaObject::Connection QObject::connect<Func1,Func2>(const QAction *,Func1,const MainWindow *,Func2,Qt::ConnectionType)'
with
[
Func1=void (__thiscall QAction::* )(bool),
Func2=void (__thiscall MainWindow::* )(void)
]
E:\Programs\Qt\Qt5.2.1\5.2.1\msvc2010_opengl\include\QtCore/qobject.h(198): or 'QMetaObject::Connection QObject::connect(const QObject *,const char *,const QObject *,const char *,Qt::ConnectionType)'
E:\Programs\Qt\Qt5.2.1\5.2.1\msvc2010_opengl\include\QtCore/qobject.h(201): or 'QMetaObject::Connection QObject::connect(const QObject *,const QMetaMethod &,const QObject *,const QMetaMethod &,Qt::ConnectionType)'
while trying to match the argument list '(const QAction *, void (__thiscall QAction::* )(bool), const QAction *, void (__thiscall MainWindow::* )(void), Qt::ConnectionType)'
To copy to clipboard, switch view to plain text mode
connect(ui->actionOpen_Script, &QAction::triggered, this, &MainWindow::OpenScript);
connect(ui->actionOpen_Script, &QAction::triggered, this, &MainWindow::OpenScript);
To copy to clipboard, switch view to plain text mode
That fixed it.
Bookmarks