Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Language Bindings
  4. PySide2 - Serial communication QSerialPort or pyserial
Forum Updated to NodeBB v4.3 + New Features

PySide2 - Serial communication QSerialPort or pyserial

Scheduled Pinned Locked Moved Unsolved Language Bindings
7 Posts 3 Posters 5.3k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Carlos DiazC Offline
    Carlos DiazC Offline
    Carlos Diaz
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      How did you install PySide2 ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • Carlos DiazC Offline
        Carlos DiazC Offline
        Carlos Diaz
        wrote on last edited by Carlos Diaz
        #3

        @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?

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          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.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          1
          • Carlos DiazC Offline
            Carlos DiazC Offline
            Carlos Diaz
            wrote on last edited by
            #5

            @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

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              You can start from the Qt for Python wiki page where you have the links to all related resources.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • A Offline
                A Offline
                AndreasBuhr
                wrote on last edited by
                #7

                I am preparing a patch to support QSerialPort in PySide2 here:
                https://codereview.qt-project.org/c/pyside/pyside-setup/+/299976

                1 Reply Last reply
                3

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved