Flite: Add retry loop when writing to QIODevice


The QIODevice does not necessarily accept arbitrary amount of data to be
pushed to the QAudioSink. So we improve the error handling to add a
retry loop, trying to push data for 5 seconds. If the data doesn't
arrive there within that time, something may have gone wrong.

Pick-to: 6.8 6.9 6.10
Fixes: QTBUG-137735
Change-Id: Ia5882e378c6a85780abab96d97d4ed4f69214fa4
Reviewed-by: Artem Dyomin <artem.dyomin@qt.io>
commita26c05c454ac44a7b014d253aaa2ba15c13b0378
parent37a56c80cc9c27e20ad471211543704a9cf648ea
authorTim Blechmann <tim@klingt.org>
committerTim Blechmann <tim@klingt.org>
commit timeThu, 19 Jun 2025 07:52:18 +0800