报错
weixin_45661658
这个作者很懒,什么都没留下…
展开
-
qt 未知報錯
原因:emit(xxx); 改成:emit sig_xxx(xxx); 系統不會顯示語法錯誤,而是訪問錯誤;原创 2021-03-31 11:11:50 · 87 阅读 · 0 评论 -
CMake Error: The current CMakeCache.txt directory
原因:項目切換了文件夾 解決方法:刪掉CMakeCache.txt(在目標文件所在的文件夾),重新config,build,run;原创 2021-03-19 11:57:16 · 5697 阅读 · 2 评论 -
QObject::connect: Cannot queue arguments of type ‘QVector<int>‘ (Make sure ‘QVector<int>‘ is registe
使用多綫程傳遞QVector的時候,報錯的解決方案: typedef QVector<int> MyArray; //修該sig和slot: void slot_func_write(const MyArray &); void sig_func_write(const MyArray &); 親測可用,如需詳細,歡迎提問。 ...原创 2021-02-18 15:17:08 · 793 阅读 · 2 评论 -
报错: DirectShowPlayerService::doSetUrlSource: Unresolved error code 0x80070003 ()
QUrl::fromLocalFile()的路径设置不对,应该使用绝对路径: QUrl::fromLocalFile(“C:/Users/guopengzhen_zhilai/Documents/test_lineedit/music/Choose payment method.mp3”) 如果要使用相对路径:必须确定当前运行的文件在哪里,才能确定相对路径在哪里。 例如,debug运行的程序,相对路径:./……就是与debug同一个文件夹,所以debug时以上语句还可以写成: QUrl::fromLocal原创 2020-05-22 15:34:03 · 3138 阅读 · 0 评论