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. error: Project ERROR: Unknown module(s) in QT: serialport
Forum Updated to NodeBB v4.3 + New Features

error: Project ERROR: Unknown module(s) in QT: serialport

Scheduled Pinned Locked Moved Solved Qt 6
4 Posts 2 Posters 6.3k Views 1 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.
  • R Offline
    R Offline
    Roma13
    wrote on 15 Mar 2022, 13:25 last edited by
    #1

    Hi, I'm a new fish in Qt. I have bumped into the error "error: Project ERROR: Unknown module(s) in QT: serialport".
    I googled it, many answers say Qt have not finish the serialport for Qt6 yet. But I found a version in maintenace tool.
    6d84f27a-ab66-419b-9c6b-2ab96930e433-image.png
    I have downloaded it, but I can't find it under my Qt documents(just in examples and docs which not helped) .
    I'm using Qt Creator 6.0.2 and kit 6.2.2 BTW.
    Thank you for cilcking in.

    G 1 Reply Last reply 15 Mar 2022, 13:45
    0
    • R Roma13
      15 Mar 2022, 13:25

      Hi, I'm a new fish in Qt. I have bumped into the error "error: Project ERROR: Unknown module(s) in QT: serialport".
      I googled it, many answers say Qt have not finish the serialport for Qt6 yet. But I found a version in maintenace tool.
      6d84f27a-ab66-419b-9c6b-2ab96930e433-image.png
      I have downloaded it, but I can't find it under my Qt documents(just in examples and docs which not helped) .
      I'm using Qt Creator 6.0.2 and kit 6.2.2 BTW.
      Thank you for cilcking in.

      G Offline
      G Offline
      Gojir4
      wrote on 15 Mar 2022, 13:45 last edited by
      #2

      Hi @Roma13,

      First, you need to add the module in your pro of cmake file.
      pro: QT += serialport
      CMakeLists.txt: find_package(Qt6 REQUIRED SerialPort)

      Secondly, if you compile using kit 6.2.2, you probably need to download Qt Serial Port module for version 6.2.2 or using kit 6.2.3.

      1 Reply Last reply
      2
      • R Offline
        R Offline
        Roma13
        wrote on 15 Mar 2022, 13:54 last edited by
        #3

        You are right. I download kit 6.2.3 and problem solved. Thank you, sir!

        G 1 Reply Last reply 15 Mar 2022, 14:45
        0
        • R Roma13
          15 Mar 2022, 13:54

          You are right. I download kit 6.2.3 and problem solved. Thank you, sir!

          G Offline
          G Offline
          Gojir4
          wrote on 15 Mar 2022, 14:45 last edited by
          #4

          You're welcome ! Please don't forget to set the status as resolved. Thanks !

          1 Reply Last reply
          0

          1/4

          15 Mar 2022, 13:25

          • Login

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