[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: getting char data out of QStrings in Qt 2.0
From:       Reginald Stadlbauer <reggie () alpha ! tat ! physik ! uni-tuebingen ! de>
Date:       1999-04-30 0:22:18
[Download RAW message or body]

On Fri, 30 Apr 1999, pbrown@redhat.com wrote:
> Is the preferred method for getting data out of QStrings and into char
> arrays in Qt 2.0 via the ::ascii() method or with a (const char *) cast?
> And why?

As the const char* operator just calls QString::ascii() it's the same. But
using ::ascii() looks nicer IMO :-)

Ciao, Reggie

--
*************************************
Reginald Stadlbauer
Pfarrweg 8c, A-8010 Graz,
Austria (Europe)

E-Mail: reggie@kde.org

Homepage: http://htualpha.tu-graz.ac.at/reggie

Telematik Student an der TU-Graz
EDV-Sachbearbeiter an der HTU-Graz
KDE fan and developer :-)

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic