Qt linker error when adding class to basic Qt GUI application

后端 未结 1 1463
生来不讨喜
生来不讨喜 2021-01-25 10:15

I have been struggling for some time now and can\'t figure this out. I added a class to my basic Qt GUI application and i got linker errors. I don\'t see what can cause this and

相关标签:
1条回答
  • 2021-01-25 10:41

    As noted here, because QtSerialPort is an add on module you need to explicitly add it to your project:

    QT += serialport
    
    0 讨论(0)
提交回复
热议问题