Hi Thiago,
This looks like the best solution. I already get a message when load()
fails*, and I can use it as test expression for conditional compile.
Maybe the wiki https://wiki.qt.io/Qt_Serial_Port
should be updated, as load() seems the best way to do it.
@Kai: QT_CONFIG seems to include ev
On quinta-feira, 10 de março de 2016 09:10:49 PST André Hartmann wrote:
> Hi all,
>
> I'm working on a library that (optionally) depends on QSerialPort.
>
> This library should also compile on Qt 4, so I did the following in the
> project file:
>
> greaterThan(QT_MAJOR_VERSION, 4) {
> Q
> -Original Message-
> From: Interest [mailto:interest-
> bounces+kai.koehne=theqtcompany@qt-project.org] On Behalf Of
> Koehne Kai
> Sent: Thursday, March 10, 2016 1:57 PM
> To: André Hartmann ; Interest@qt-
> project.org
> Subject: Re: [Interest] Qmake: Det
> -Original Message-
> From: Interest [mailto:interest-
> bounces+kai.koehne=theqtcompany@qt-project.org] On Behalf Of
> Andre Hartmann
> Sent: Thursday, March 10, 2016 9:11 AM
> To: Interest@qt-project.org
> Subject: [Interest] Qmake: Detecting if QSerialPort
Hi all,
I'm working on a library that (optionally) depends on QSerialPort.
This library should also compile on Qt 4, so I did the following in the
project file:
greaterThan(QT_MAJOR_VERSION, 4) {
QT += serialport
} else {
CONFIG += serialport
}
Thats fine so far, but if QSeri