CAN Bus example | Qt Serial Bus 5.6

Qt Documentation (Technology Preview) | Qt Serial Bus | CAN Bus example

Qt 5.6.2 Reference Documentation

# CAN Bus example

The example sends and receives CAN bus frames. Incoming frames are ordered according to their type. A connect dialog is provided to adjust the CAN Bus connection parameters.

Key Qt Serial Bus classes used in this example:

- QCanBusDevice
- QCanBusFrame

## Running the Example

To run the example from Qt Creator, open the Welcome mode and select the example from Examples. For more information, visit Building and Running an Example.

Files:

- can/connectdialog.cpp
- can/connectdialog.h
- can/connectdialog.ui
- can/mainwindow.cpp
- can/mainwindow.h
- can/mainwindow.ui
- can/main.cpp
- can/can.pro
- can/can.qrc

Images:

- can/images/application-exit.png
- can/images/clear.png
- can/images/connect.png
- can/images/disconnect.png