Hi,

in KXMLEditor we have helper class for QString - XMLCh* conversion, look at:

http://cvs.sourceforge.net/viewcvs.py/kxmleditor/kxmleditor/part/kxestring.h?rev=1.7&view=markup

A am not sure, if this approach is absolutely right, but it works for me.

Regards,
Lumir Vanek


So, if everybody is telling the truth, can I not just do this?

const XMLCh* QtoX(const QString& s) { return reinterpret_cast<const XMLCh*>(s.constData()); }

const XMLCh* CtoX(const char* cs) { return QtoX(cs); }



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to