Hello,

According to `Unit::verifyHeader()` @ `qv4compileddata.cpp`, the version needs to strictly match:

```
    if (qtVersion != quint32(QT_VERSION)) {
        *errorString = QString::fromUtf8("Qt version mismatch. Found %1 expected %2")                                .arg(qtVersion, 0, 16).arg(QT_VERSION, 0, 16);
        return false;
    }
```

1) Is there a particular reason that this exists, considering that there is already a data structure check before?

2) Can this check be limited to major and minor version checks, similar to MOC? (`Q_MOC_OUTPUT_REVISION` does not contain patch version)

3) If we patch this already in Qt 6.8 to consider only the major and minor versions, should we expect problems if we use output of different patch version `qmlcachegen` (such as, Qt is version 6.8.1 but `qmlcachegen` is version 6.8.2)?

Thanks in advance,
Fatih Uzunoğlu

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

-- 
Development mailing list
Development@qt-project.org
https://lists.qt-project.org/listinfo/development

Reply via email to