no matching function to call connect
时间: 2024-05-16 18:19:33 浏览: 98
no matching function for call to function (解决方案).md
"No matching function for call to 'connect'" 这个错误通常出现在Qt的connect函数调用时,意味着在调用connect函数时,没有找到匹配的函数。根据引用,connect函数有多个重载版本,每个版本都有不同的参数类型和数量。为了正确调用connect函数,参数类型和数量必须与可用的重载版本匹配。根据引用和引用,错误的原因可能是connect函数的参数类型或数量与可用的重载版本不匹配。为了解决这个问题,你可以检查参数类型、数量和顺序是否正确,并确保调用的版本与你期望的版本匹配。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [Qt:no matching function for call to (类名)::connect()的错误原因总结](https://blog.csdn.net/tjcwt2011/article/details/110297280)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* [QT使用信号与槽时编译错误“no matching function for call to connect](https://blog.csdn.net/qq_41854911/article/details/128059174)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文