错误提示:Error: Cannot create children for a parent that is in a different thread. 错误案例分析 新建SerialLink子线程,继承QThread,并重写它的run(),调用 start()函数时自动调用重载的run()函数.在主线程中创建SerialLink类的对象. 串口_port在SerialLink的头文件中定义,在_hardwareConnect()函数中初始化.在_connect()函数中调用start()函…
Fixing Qt Warning: Unescaped backslashes are deprecated! From: http://www.openguru.com/2011/10/fixing-qt-warning-unescaped-backslashes.html You might have hit this warning while you are trying to include source files located under sub directories to…