What is the correct way to convert a vtkUnicodeString to QString? I can do<div><br></div><div>QString qs = QString::fromUtf8(str.utf8_str());</div><div><br></div><div>This also seems to work</div><div><br></div><div>QString qs = QString::fromUtf16(&str.utf16_str()[0]);</div>
<div><br></div><div>Are both equally valid, since the internal storage of vtkUnicodeString is UTF8 and for QString it is UTF16, so one conversion must take place either way?</div><div><br></div><div>Why does utf8_str() return a char* but utf16_str() return a vector?</div>
<div><br></div><div>Jeff</div><div><br>-- <br>Jeff Baumes, Ph.D.<br>R&D Engineer, Kitware Inc.<br>(518) 881-4932<br><a href="mailto:jeff.baumes@kitware.com">jeff.baumes@kitware.com</a><br>
</div>