From kde-devel Thu Mar 22 10:21:24 2001 From: David Faure Date: Thu, 22 Mar 2001 10:21:24 +0000 To: kde-devel Subject: Re: simple question about QString X-MARC-Message: https://marc.info/?l=kde-devel&m=98525672801112 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 <<