Translations:Development/Tutorials/Common Programming Mistakes/105/en: Difference between revisions
Appearance
Importing a new version from external source |
(No difference)
|
Latest revision as of 07:31, 26 October 2019
KProcess emits the signals readyReadStandard{Output|Error} as data comes in. A common mistake is reading all available data in the connected slot and converting it to QString right away: the data comes in arbitrarily segmented chunks, so multi-byte characters might be cut into pieces and thus invalidated. Several approaches to this problem exist: