The Qt Modbus component supports both Modbus RTU and Modbus TCP. There is both a Modbus Slave and a Modbus Master example installed with the Qt SDK. They both use Qt Widgets.
In addition please find the example below using Qt Quick.
modbus_qt.mp4
Download Source Code