SHARE
TWEET

Untitled

a guest Jan 30th, 2019 81 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ..\databaseMultiTreadTest\mainwindow.cpp: In member function 'void MainWindow::on_pushButton_clicked()':
  2.  
  3. ..\databaseMultiTreadTest\mainwindow.cpp:42:32: error: no matching function for call to 'MainWindow::connect(QFutureWatcher<QSqlTableModel*>*&, const char*, QFutureWatcher<QSqlTableModel*>*&, MainWindow::on_pushButton_clicked()::<lambda()>, Qt::ConnectionType)'
  4.          }, Qt::QueuedConnection);
  5.                                 ^
  6. In file included from D:/QT/5.11.3/mingw53_32/include/QtWidgets/qwidget.h:45:0,
  7.                  from D:/QT/5.11.3/mingw53_32/include/QtWidgets/qmainwindow.h:44,
  8.                  from D:/QT/5.11.3/mingw53_32/include/QtWidgets/QMainWindow:1,
  9.                  from ..\databaseMultiTreadTest\mainwindow.h:4,
  10.                  from ..\databaseMultiTreadTest\mainwindow.cpp:1:
  11. D:/QT/5.11.3/mingw53_32/include/QtCore/qobject.h:208:36: note: candidate: static QMetaObject::Connection QObject::connect(const QObject*, const char*, const QObject*, const char*, Qt::ConnectionType)
  12.      static QMetaObject::Connection connect(const QObject *sender, const char *signal,
  13.                                     ^
  14. D:/QT/5.11.3/mingw53_32/include/QtCore/qobject.h:208:36: note:   no known conversion for argument 4 from 'MainWindow::on_pushButton_clicked()::<lambda()>' to 'const char*'
  15. D:/QT/5.11.3/mingw53_32/include/QtCore/qobject.h:211:36: note: candidate: static QMetaObject::Connection QObject::connect(const QObject*, const QMetaMethod&, const QObject*, const QMetaMethod&, Qt::ConnectionType)
  16.      static QMetaObject::Connection connect(const QObject *sender, const QMetaMethod &signal,
  17.                                     ^
  18. D:/QT/5.11.3/mingw53_32/include/QtCore/qobject.h:211:36: note:   no known conversion for argument 2 from 'const char*' to 'const QMetaMethod&'
  19. D:/QT/5.11.3/mingw53_32/include/QtCore/qobject.h:463:32: note: candidate: QMetaObject::Connection QObject::connect(const QObject*, const char*, const char*, Qt::ConnectionType) const
  20.  inline QMetaObject::Connection QObject::connect(const QObject *asender, const char *asignal,
  21.                                 ^
  22. D:/QT/5.11.3/mingw53_32/include/QtCore/qobject.h:463:32: note:   candidate expects 4 arguments, 5 provided
  23. D:/QT/5.11.3/mingw53_32/include/QtCore/qobject.h:228:43: note: candidate: 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)
  24.      static inline QMetaObject::Connection connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal,
  25.                                            ^
  26. D:/QT/5.11.3/mingw53_32/include/QtCore/qobject.h:228:43: note:   template argument deduction/substitution failed:
  27. D:/QT/5.11.3/mingw53_32/include/QtCore/qobject.h: In substitution of '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) [with Func1 = const char*; Func2 = MainWindow::on_pushButton_clicked()::<lambda()>]':
  28. ..\databaseMultiTreadTest\mainwindow.cpp:42:32:   required from here
  29. D:/QT/5.11.3/mingw53_32/include/QtCore/qobject.h:228:43: error: no type named 'Object' in 'struct QtPrivate::FunctionPointer<MainWindow::on_pushButton_clicked()::<lambda()> >'
  30. D:/QT/5.11.3/mingw53_32/include/QtCore/qobject.h:260:13: note: candidate: template<class Func1, class Func2> static typename std::enable_if<((int)(QtPrivate::FunctionPointer<Func2>::ArgumentCount) >= 0), QMetaObject::Connection>::type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, Func2)
  31.              connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, Func2 slot)
  32.              ^
  33. D:/QT/5.11.3/mingw53_32/include/QtCore/qobject.h:260:13: note:   template argument deduction/substitution failed:
  34. ..\databaseMultiTreadTest\mainwindow.cpp:42:32: note:   candidate expects 3 arguments, 5 provided
  35.          }, Qt::QueuedConnection);
  36.                                 ^
  37. In file included from D:/QT/5.11.3/mingw53_32/include/QtWidgets/qwidget.h:45:0,
  38.                  from D:/QT/5.11.3/mingw53_32/include/QtWidgets/qmainwindow.h:44,
  39.                  from D:/QT/5.11.3/mingw53_32/include/QtWidgets/QMainWindow:1,
  40.                  from ..\databaseMultiTreadTest\mainwindow.h:4,
  41.                  from ..\databaseMultiTreadTest\mainwindow.cpp:1:
  42. D:/QT/5.11.3/mingw53_32/include/QtCore/qobject.h:269:13: note: candidate: template<class Func1, class Func2> static typename std::enable_if<(((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)
  43.              connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, const QObject *context, Func2 slot,
  44.              ^
  45. D:/QT/5.11.3/mingw53_32/include/QtCore/qobject.h:269:13: note:   template argument deduction/substitution failed:
  46. D:/QT/5.11.3/mingw53_32/include/QtCore/qobject.h: In substitution of 'template<class Func1, class Func2> static typename std::enable_if<(((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 = const char*; Func2 = MainWindow::on_pushButton_clicked()::<lambda()>]':
  47. ..\databaseMultiTreadTest\mainwindow.cpp:42:32:   required from here
  48. D:/QT/5.11.3/mingw53_32/include/QtCore/qobject.h:269:13: error: no type named 'type' in 'struct std::enable_if<false, QMetaObject::Connection>'
  49. D:/QT/5.11.3/mingw53_32/include/QtCore/qobject.h:300:13: note: candidate: template<class Func1, class Func2> static typename std::enable_if<(QtPrivate::FunctionPointer<Func2>::ArgumentCount == (-1)), QMetaObject::Connection>::type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, Func2)
  50.              connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, Func2 slot)
  51.              ^
  52. D:/QT/5.11.3/mingw53_32/include/QtCore/qobject.h:300:13: note:   template argument deduction/substitution failed:
  53. ..\databaseMultiTreadTest\mainwindow.cpp:42:32: note:   candidate expects 3 arguments, 5 provided
  54.          }, Qt::QueuedConnection);
  55.                                 ^
  56. In file included from D:/QT/5.11.3/mingw53_32/include/QtWidgets/qwidget.h:45:0,
  57.                  from D:/QT/5.11.3/mingw53_32/include/QtWidgets/qmainwindow.h:44,
  58.                  from D:/QT/5.11.3/mingw53_32/include/QtWidgets/QMainWindow:1,
  59.                  from ..\databaseMultiTreadTest\mainwindow.h:4,
  60.                  from ..\databaseMultiTreadTest\mainwindow.cpp:1:
  61. D:/QT/5.11.3/mingw53_32/include/QtCore/qobject.h:308:13: note: candidate: template<class Func1, class Func2> static typename std::enable_if<(QtPrivate::FunctionPointer<Func2>::ArgumentCount == (-1)), QMetaObject::Connection>::type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const QObject*, Func2, Qt::ConnectionType)
  62.              connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, const QObject *context, Func2 slot,
  63.              ^
  64. D:/QT/5.11.3/mingw53_32/include/QtCore/qobject.h:308:13: note:   template argument deduction/substitution failed:
  65. D:/QT/5.11.3/mingw53_32/include/QtCore/qobject.h: In substitution of 'template<class Func1, class Func2> static typename std::enable_if<(QtPrivate::FunctionPointer<Func2>::ArgumentCount == (-1)), QMetaObject::Connection>::type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const QObject*, Func2, Qt::ConnectionType) [with Func1 = const char*; Func2 = MainWindow::on_pushButton_clicked()::<lambda()>]':
  66. ..\databaseMultiTreadTest\mainwindow.cpp:42:32:   required from here
  67. D:/QT/5.11.3/mingw53_32/include/QtCore/qobject.h:308:13: error: no type named 'Object' in 'struct QtPrivate::FunctionPointer<const char*>'
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top