[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: can't convert char to QString
From: Carsten Pfeiffer <carpdjih () cetus ! zrz ! tu-berlin ! de>
Date: 2001-04-07 9:30:27
[Download RAW message or body]
Am Samstag, 7. April 2001 04:38 schrieb Chad Frick:
> Thank you. Now can anyone explain why it works everywhere else? I like to
> really understand how things work and not just that they work. :-)
if you have QT_NO_CAST_ASCII defined, the QString( const char * ) constructor
is disabled, so you have to explicitly use fromLatin1() (or
fromLocal8Bit() or fromUtf(), depending on your string) to create a
string from a char *.
Cheers
Carsten Pfeiffer
>> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic