Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. Qt Serial Port Support with Qt 6

Qt Serial Port Support with Qt 6

Scheduled Pinned Locked Moved Unsolved Qt 6
4 Posts 3 Posters 1.4k Views
  • 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.
  • P Offline
    P Offline
    Parvathy2020
    wrote on last edited by
    #1

    Hi,

    I am using Qt 6.04 now. And I need to use Qt serial port for reading serial data .
    But it is throwing error when I added QT += serialport in my application .pro file.
    :-1: error: Project ERROR: Unknown module(s) in QT: serialport*

    Now I have noticed in the https://doc-snapshots.qt.io/qt6-dev/whatsnew60.html#removed-modules-in-qt-6-0 that serial port support is removed for qt 6.

    Now what can be done to read serial data from qt application ? Is there any other alternative method to handle this ?

    Please provide the support.

    1 Reply Last reply
    0
    • Christian EhrlicherC Online
      Christian EhrlicherC Online
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      This sub-forum has a sticky post: "Read before posting in this category!" where you can find links when which module is supported in Qt6. Take a look at the changes for Qt 6.2 and you will find your QtSerialPort module.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      P 1 Reply Last reply
      2
      • Christian EhrlicherC Christian Ehrlicher

        This sub-forum has a sticky post: "Read before posting in this category!" where you can find links when which module is supported in Qt6. Take a look at the changes for Qt 6.2 and you will find your QtSerialPort module.

        P Offline
        P Offline
        Parvathy2020
        wrote on last edited by
        #3

        @Christian-Ehrlicher Thanks for your reply. Now I installed Qt 6.2 and got support for Qt Serial Port Library.

        J 1 Reply Last reply
        1
        • P Parvathy2020

          @Christian-Ehrlicher Thanks for your reply. Now I installed Qt 6.2 and got support for Qt Serial Port Library.

          J Offline
          J Offline
          jerrylogansquare
          wrote on last edited by
          #4

          @Christian-Ehrlicher thanks! I was using Qt6 and also had Qt5 installed to support QSerialPort. The cmake was able to handling including the Qt5 libraries. :) Anyway, i'll be reworking my cmake to just use Qt 6.2

          1 Reply Last reply
          0

          • Login

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