PySide2 - Serial communication QSerialPort or pyserial
-
Hi,
I need to have communication with a microcontroller via serial, i don't know if use the QSerialPort or pyserial, if the former how should i import it? i tried the following with no success:
from PySide import QSerialPort
I also searched on the list of missing bindings and couldn't find it, so i guess it's already available.
Do you know f QSerialPort and QSerialPortInfo is available or how should iimport it?
Regards
-
Hi,
How did you install PySide2 ?
-
@SGaist said in PySide2 - Serial communication QSerialPort or pyserial:
Hi,
How did you install PySide2 ?
Hi,
Like so:
$ pip install PySide2
Should i had installed using the wheel file?
-
Just in case it should be
from PySide2
but after a quick search in the sources it seems that the QtSerialPort module is not yet included. -
@SGaist said in PySide2 - Serial communication QSerialPort or pyserial:
Just in case it should be
from PySide2
but after a quick search in the sources it seems that the QtSerialPort module is not yet included.Oh, it was a typo, i was doing as you said
from PySide2
I will use pyserial for now and wait for the release of QSerialPort, by any chance Qt tracks the implemented modules in a milestone or something similar?
Thanks for the help
-
You can start from the Qt for Python wiki page where you have the links to all related resources.
-
I am preparing a patch to support QSerialPort in PySide2 here:
https://codereview.qt-project.org/c/pyside/pyside-setup/+/299976