[Qt-interest] CString and QString...any way to transform them?
Constantin Makshin
dinosaur-rus at users.sourceforge.net
Fri Mar 20 22:22:50 CET 2009
CString has an operator to get the constant pointer to its contents.
CString cstr = _T("...");
QString qstr(
#if defined(_UNICODE)
QString::fromWCharArray(cstr)
#else
cstr
#endif
);
On Fri, 20 Mar 2009 19:32:22 +0300, Giancarlo Amati
<ilferraresebono at hotmail.it> wrote:
> Hello everybody,
>
> I have a library that has been written for MFC win32 and I want to
> integrate in my QT application. Now, the problem is that there are types
> of data which belong to MFC Win32 while in QT they are a bit different.
> Is there any mechanism to convert CString to QString?
>
> Kind regards.
> Giancarlo
--
Constantin "Dinosaur" Makshin
More information about the Qt-interest-old
mailing list