Windows QT6 & C++ debug and help needed

Job ID: 37363357

Budget: €8 – €30 EUR

Under windows 10 and 11 in QT6 environment I have a wstring that is for instance
wstring(L"\\\\.\\COM6");
I need it to be converted to QString or QBytearray or something else to be transmitted to another function where it is converted back to the original wstring before to be used.
Related categories: Windows Desktop C++ Programming Qt