QSerialport多線程環境使用的排坑

    使用Qt也已經有一段時間了,雖然使用過繼承QThread重寫run函數,以及繼承QObject然後使用MoveToThread兩種方法實現多線程,但是在QSerialPort的使用過程中,兩種方法都存在一定的問題。 典型的問題:QObject: Cannot create children for a parent that is in a different thread.     原因
相關文章
相關標籤/搜索