Home > Mobile >  QT connect cuowu connection of signals and slots
QT connect cuowu connection of signals and slots

Time:01-18

Beginning with QT for signals and slots function is not very familiar with,
You connect signals and slots appear error: no matching member function for the call to 'connect',

Trough dealphotos is built under the mainwindow public slots,

Signal Sendphoto is based on a nested within the MainWindow class under the class,

But when the connect error not match a member function to call,

Test_mainwindow. CPP: meat: error: no matching member function for the call to 'connect'
Qobject. H: 242:43: note: candidate function [with Func1=void Test_MainWindow: : CSampleCaptureEventHandler: : * () (), Func2=void Test_MainWindow: : * () ()] not viable: no known conversion from 'Test_MainWindow *' to 'const typename QtPrivate: : FunctionPointerQobject. H: 222:36: note: candidate function not viable: no known conversion from 'void Test_MainWindow: : CSampleCaptureEventHandler: : * () ()' to 'const char *' for 2nd argument
Qobject. H: 225:36: note: candidate function not viable: no known conversion from 'void Test_MainWindow: : CSampleCaptureEventHandler: : * () ()' to 'const QMetaMethod' for 2nd argument
Qobject. H: 481:41: note: candidate function not viable: no known conversion from 'void Test_MainWindow: : CSampleCaptureEventHandler: : * () ()' to 'const char *' for 2nd argument
Qobject. H: 283:13: note: candidate template ignored: the requirement '! QtPrivate: : FunctionPointerQobject. H: 322:13: note: candidate template ignored: the requirement 'QtPrivate: : FunctionPointerQobject. H: 274:13: note: candidate function template not viable: the requires three arguments, but 4 were provided
Qobject. H: 314:13: note: candidate function template not viable: the requires three arguments, but 4 were provided

Don't know what circumstance, for DL!!!!!!

CodePudding user response:

How to use the connect?

CodePudding user response:

See, connect with the two there is something wrong with this, the first parameter is the signal the sender's pointer, the third argument should be a signal receiver's pointer
  •  Tags:  
  • Qt
  • Related