Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Adding Serial Port Module with QT += serialport
Forum Updated to NodeBB v4.3 + New Features

Adding Serial Port Module with QT += serialport

Scheduled Pinned Locked Moved Unsolved General and Desktop
qserialport5.75.7.1
4 Posts 2 Posters 2.7k 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.
  • O Offline
    O Offline
    Orkun
    wrote on last edited by
    #1

    Hi all,

    I'm trying to develop a serial communication application with Qt 5.7 and Qt Creator 4.1.0 Community Edition but I'm facing with module problem. I can see the QSerialPort file in the include path but cannot load the module in the .pro file (QT += serialport). I tried to install again to see if the module has installed or not but problem still same. The error is PROJECT ERROR: Unknown module(s) in QT: serialport. I installed the Qt to secondary hard drive (D:).

    Thanks.

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

      Hi and welcome to devnet,

      Might be a silly question but did you re-run qmake after adding QT += serialport to your .pro file and before building ?

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

      O 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi and welcome to devnet,

        Might be a silly question but did you re-run qmake after adding QT += serialport to your .pro file and before building ?

        O Offline
        O Offline
        Orkun
        wrote on last edited by
        #3

        Hi @SGaist thank you. Yes I re-runned qmake many times but the result is same.

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

          How did you install Qt ?

          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

          • Login

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