<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif">I would like to convert an enum to its string (in this case, for a <span style="font-family:monospace,monospace">QProcess.ProcessError</span>). C++ code would be as per e.g. <a href="https://stackoverflow.com/a/34282031/489865">https://stackoverflow.com/a/34282031/489865</a>, or possibly one of the other solutions there or elsewhere. Note that this is only for Qt5, but I do have to support 5.5 onward, which rules out one of the answers there.</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">Is this possible from PyQt/Python, and if so would you be kind enough to show Python/PyQt code, as it's a bit hard to figure with those C++ type statements etc.? <br></div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">TIA.<br clear="all"></div><br>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><span style="font-family:tahoma,sans-serif">Kindest,</span></div><div><span style="font-family:tahoma,sans-serif">Jonathan</span></div></div></div></div></div>
</div>