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

List:       kde-devel
Subject:    Re: simple question about QString
From:       David Faure <david () mandrakesoft ! com>
Date:       2001-03-22 10:21:24
[Download RAW message or body]

On Monday 19 March 2001 14:10, Pupeno wrote:
> On Tuesday 20 March 2001 10:23, David Faure wrote:
> > On Monday 19 March 2001 05:42, Pupeno wrote:
> > > On Monday 19 March 2001 02:08, Christian Gebauer φό Christian Gebauer φό
> > > Christian Gebauer φό Christian Gebauer φό Christian Gebauer φό Christian
> > >
> > > Gebauer φό Christian Gebauer φό wrote:
> > > > Pupeno wrote:
> > > > > Which is the best way to generate a QString & that is needed by
> > > > > QRadioButton::QRadioButton ( const QString & text, QWidget * parent,
> > > > > const char * name=0 ) ?
> > > > > Thank you.
> > > >
> > > > QRadioButton(i18n("blah"),....)
> > >
> > > but i18n("blah") is not a QString & as far as I know, right ?
> >
> > It returns a QString, whose reference will be passed to the QRadioButton
> > constructor. I think you need to have a closer look at a C++ book :-)
> does i18n() returns a QString ? 

You still doubt it after 5 people told you ? :>

> I though it returns a char *, where can I 
> find documents about i18n() ?

http://developer.kde.org/documentation/library/2.1-api/classref/kdecore/all-globals.html#ref505

-- 
David FAURE, david@mandrakesoft.com, faure@kde.org
http://perso.mandrakesoft.com/~david/, http://www.konqueror.org/
KDE, Making The Future of Computing Available Today
 
>> 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