• I installed the QT version below:
    Qt Creator 3.5.1 (opensource)
    Based on Qt 5.5.1 (GCC 4.9.1 20140922 (Red Hat 4.9.1-10), 32 bit) into a VirtualBox on my Windows 7 PC running Ubuntu 15.10 installed from a .vdi virtual disk image

    It is my understanding that QtSerialport is supposedly included with all versions of QT past 5.1

    Yet, when I include QT += serialport in my project file and run qmake I get:
    error: Unknown module(s) in QT: serialport

    If I ignore that and remove it from the project file when I build it can't resolve #include <QSerialPort> in any of my c++ files, not that I thought that would ever link correctly anyway

    I don't see any library files associated with QtSerialport in any directory, nor do I see the include files needed.

    So, how is QtSerialport part of all distributions past 5.1 but it doesn't show up? How do I get it there?

  • Lifetime Qt Champion


    How did you instal Qt ? What version did you install ?

  • @MRaitman said:

    I installed the QT version below:
    Qt Creator 3.5.1 (opensource)
    Based on Qt 5.5.1 (GCC 4.9.1 20140922 (Red Hat 4.9.1-10), 32 bit)

    I downloaded the above version of open source QT from the QT site, then ran the install executable qt-opensource-linux-x86-5.5.1.run from a linux terminal window in my virtualbox

  • Lifetime Qt Champion

    That's the informations about Qt Creator, not about the Qt version you are using.

    You might be very well be using Qt 4 to build your application which would explain why you don't have access to the QtSerialPort module.

    By the way, it's Qt, QT stands for Apple QuickTime which you could also be using.

  • Read it again. It says Qt Creator 3.5.1 based on Qt 5.5.1 and the install executable also says 5.5.1 Are you saying I could end up with a Qt version 4 in something that is tagged with version 5.5.1 on it? That makes no sense.

  • Lifetime Qt Champion

    I know what it says: It's the information about Qt Creator and the version of Qt used to build it.

    That in itself has no incidence on the version of Qt you'll be using for your development. You can develop your application with many different version of Qt be it Qt 4 / Qt 5 / Qt for Android etc.

    That information can be found in the preferences under Build and Run where you have the Kits and Qt versions you installed or that was detected.

Log in to reply