Qt 6 is a result of the conscious effort to make the framework more efficient and easy to use. We try to maintain binary and source compatibility for all the public APIs in each release. But some changes were inevitable in an effort to make Qt a better framework. In this topic, we summarize those changes in Qt SerialBus module and provide guidance to handle them.
The Qt SerialBus module is generally speaking source compatible with the Qt 5 version and users of the library should be able to continue with no or minor changes to their project.
As with Qt 6 in general, the Qt SerialBus module has CMake support in addition to qmake.
In Qt 6 the QCanBusFactoryV2 has been removed and is no longer part of the public API. Instead QCanBusFactory has gained the additional method QCanBusFactory::availableDevices that needs to be implemented by sub-classes of QCanBusFactory.
QCanBusDevice got the following changes:
plugin
name as first parameter and slighly adopted parameter lists.QCanBusFrame now uses the distinct type FrameId
, which is a typedef to quint32, so existing code should still work. Anyway, it is recommended to use FrameId
when upgrading.
Following the recommendation of the Modbus organization the class QModbusRtuSerialMaster
has been renamed to QModbusRtuSerialClient and the class QModbusRtuSerialSlave
has been renamed to QModbusRtuSerialServer. It is advised to use the new class names in new or ported code to adhere to the Modbus naming scheme.
© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-6.2/qtserialbus-changes-qt6.html