The following error occurred in the binding mechanism between signal and slot function:
error: no matching function for call to 'Widget::connect(QPushButton*&, void (QAbstractButton::*)(bool), Widget*, <unresolved overloaded function type>)'
The reason for the error is that when making a response call, you do not know which function to call, indicating that function reuse occurs.
void classover();
void classover(QString food);
For the above two functions, you can mask one. Which one?
When signals correspond to slot functions, two characteristics need to be noted:
1. The parameter types of signals and slots must correspond one by one
2. The number of parameters of signals and slots can be different, but the number of signal parameters must be more than that of slot functions
To sum up, the nonparametric function is retained to achieve the correct result.
Read More:
- Qt error: no matching function for call to ‘MainWindow::connect(QAction*&, void (QAction::*)
- [Solved] Tensorflow2.0 Error: Function call stack:distributed_function
- QT solves error: use of deleted function and is private within this context
- [Solved] The application could not be installed: INSTALL_FAILED_NO_MATCHING_ABIS
- How to Fix msgsend() error: to many arguments to function call, expected 0, have2
- MOTR compiling error: cannot call member function ‘void std::basic_string<_CharT, _Traits, _Alloc>::_R
- C++ Primer Program in VsCode error: no match for call to ‘(std::__cxx11::string…)
- [Solved] PySide2 Error: This application failed to start because no Qt platform plugin could be initialized
- TensorFlow-gpu Error: failed call to cuInit: CUDA_ERROR_NO_DEVICE: no CUDA-capable device is detected
- Vue+TS main.ts error: unused expression, expected an assignment or function call
- [Solved] Qt Error: qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed
- [Solved] QT error: error: undefined reference to ` VTable`
- [Solved] QT error: the packaged exe of Enigma virtual box reports an error cannot load library qt5core.dll
- Numpy.exp Function Error ‘Float’ object has no attribute ‘exp’
- [Solved] Qt Error: undefined reference to xxxxx
- [Solved] QT Warning: Slots named on_foo_bar are error prone
- [Solved] target_link_libraries error: a missing vtable usually means the first non-inline virtual member function has no definition.
- QT Error: Failed to create vertex shader [Three Methods to Fix]
- How to Solev QT compilation error “cannot find – LGL”