[Qt-interest] How to add QList<wchar_t*> or items of type wchar_t*to a QComboBox ?

Karol Krizka kkrizka at gmail.com
Thu May 28 08:55:27 CEST 2009


On Wed, 2009-05-27 at 23:40 -0700, Scott Aron Bloom wrote:
> You have to convert to a QString
> 
> 
But if you want to get your wchar_t* back afterwards, you can use
QString::toStdWString(). I've just used it recently to convert between
the two representations.

text.toStdWString().c_str();

http://doc.qtsoftware.com/4.5/qstring.html#toStdWString


--
Cheers,
Karol Krizka
http://www.krizka.net

> Scott
> 
>  
> 
> From: qt-interest-bounces at trolltech.com
> [mailto:qt-interest-bounces at trolltech.com] On Behalf Of Kamakshi
> Sivaraman
> Sent: Wednesday, May 27, 2009 11:36 PM
> To: qt-interest at trolltech.com
> Subject: [Qt-interest] How to add QList<wchar_t*> or items of type
> wchar_t*to a QComboBox ?
> 
> 
>  
> 
> 
> Hi All, 
> 
> I want to add QList<whcar_t *> to a QComboBox, But I didn't find any
> option which 
> allows to add QList<wchar_t*> or items of data type wchar_t* type into
> a QComboBox, without converting into QString. 
> 
> Please suggest how to add such datatype items to a QComboBox. 
> 
> Thanks & Regards,
> S.KAMAKSHI
> Larsen & Toubro Infotech Limited
> Whitefield,
> Bangalore -560066
> 
> Larsen & Toubro Infotech Ltd.
> www.Lntinfotech.com
> 
> This Document is classified as: 
> 
> [X]L&T Infotech Proprietary   [ ]L&T Infotech Confidential   [ ]L&T
> Infotech Internal Use Only   [ ]L&T Infotech General Business   
> 
> This Email may contain confidential or privileged information for the
> intended recipient (s) If you are not the intended recipient, please
> do not use or disseminate the information, notify the sender and
> delete it from your system. 
> ______________________________________________________________________
> 
> 
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest




More information about the Qt-interest-old mailing list