QString::toWCharArray(wchar_t *array)
x_Connect(&hReader, (WCHAR*)addrHost->text().utf16(), 0, 0, NULL)
int QString::toWCharArray ( wchar_t * array ) const
(wchar_t*)QString("some text").utf16()
QString str = "Some text...";wchar_t* array = new wchar_t[str.length() + 1];array[str.toWCharArray(array)] = '\0';// ...delete array;