QSerialPort : no such file or directory
-
Hello everyone,
I have been working on QT Creator 3.5.1 based on Qt 5.5.1.
I am facing a problem with #include <QSerialPort>
I get a error message as no such file or directory found.
I request all to help me to resolve this problem.
Thanks in advance.
-
Hello everyone,
I have been working on QT Creator 3.5.1 based on Qt 5.5.1.
I am facing a problem with #include <QSerialPort>
I get a error message as no such file or directory found.
I request all to help me to resolve this problem.
Thanks in advance.
@Zakir-Hussain add
QT += serialport
in your .pro -
@Zakir-Hussain add
QT += serialport
in your .pro@eyllanesc I have already added, but didn't work.
-
@eyllanesc I have already added, but didn't work.
@Zakir-Hussain How did you install Qt? what is your OS?
-
@eyllanesc I installed a open source from Qt website in Windows 10.
-
@eyllanesc I installed a open source from Qt website in Windows 10.
@Zakir-Hussain Which Qt version did you install (I don't mean "based on Qt 5.5.1", but the one you installed and are using)?
-
@Zakir-Hussain Which Qt version did you install (I don't mean "based on Qt 5.5.1", but the one you installed and are using)?
Hi,
@jsulm I have attached the screenshot of the version below. Please check. -
Hi,
@jsulm I have attached the screenshot of the version below. Please check.@Zakir-Hussain Again: this is not what I'm asking. This dialog only says which Qt version was used to build QtCreator.
We need to know what Qt version you did install. So, please tell us which version you installed. If you don't remember then go to the Kit and check there.
And why did you say you're using QtCreator 3.5.1 at the beginning but now you show us QtCreator 4.15.2? -
@Zakir-Hussain Again: this is not what I'm asking. This dialog only says which Qt version was used to build QtCreator.
We need to know what Qt version you did install. So, please tell us which version you installed. If you don't remember then go to the Kit and check there.
And why did you say you're using QtCreator 3.5.1 at the beginning but now you show us QtCreator 4.15.2?@jsulm Sorry it was by mistake.
The version is Desktop Qt 6.1.2 MinGW 64-bit.
I have attached the screenshot for your reference.Thanks & Regards.
Zakir Hussain
-
@jsulm Sorry it was by mistake.
The version is Desktop Qt 6.1.2 MinGW 64-bit.
I have attached the screenshot for your reference.Thanks & Regards.
Zakir Hussain
@Zakir-Hussain The QtSerialPort module will be available only in Qt 6.2 as indicated in article https://www.qt.io/blog/add-on-support-in-qt-6.0-and-beyond.
So you have the following options:
- Use Qt5 (the most recommended)
- Wait for Qt 6.2
- Use the beta version of Qt 6.2
-
@Zakir-Hussain The QtSerialPort module will be available only in Qt 6.2 as indicated in article https://www.qt.io/blog/add-on-support-in-qt-6.0-and-beyond.
So you have the following options:
- Use Qt5 (the most recommended)
- Wait for Qt 6.2
- Use the beta version of Qt 6.2
Hi,
@eyllanesc Thank you so much for your guidance. I have installed Qt5 and it is working perfectly.