Fix some compiler warnings in the MQTT WebsocketSubscription Example


Fix some warnings that were reported by the MSVC compiler with the Wall
setting:
- use static_cast for signed/unsigned conversion
- use QString::fromUtf8 instead of the QByteArray constructor

Pick-to: 6.5
Task-number: QTBUG-110893
Change-Id: Ic982d3c16feb1ebcef729b4dfd023cc3b5017fec
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
commit84e3561bf8a2df716585955a54f59819debaaf9b
parent15df42c95d30e5464654df6224bd7125a6b11e05
authorMate Barany <mate.barany@qt.io>
committerMate Barany <mate.barany@qt.io>
commit timeThu, 27 Apr 2023 16:14:49 +0200