Go to advanced search

by sunny127
Thu Nov 10, 2016 1:24 pm
Forum: General discussion
Topic: Getting Qt5 with Serialport on Raspberry Pi 2
Replies: 7
Views: 15551

Re: Getting Qt5 with Serialport on Raspberry Pi 2

Tested on Raspberry Pi 3 Jessie, Qt 5.3.2

You have to install:

1)
sudo apt-get install libqt5serialport5
sudo apt-get install libqt5serialport5-dev

2) add in the .pro file
QT += serialport

3) int the .h file add:
#include <QtSerialPort/QSerialPort>

Go to advanced search