Qt-interest Archive, September 2007
Re: how to print QString contents - QT4
Message 1 in thread
On 8/31/07, Thiago Macieira <thiago.macieira@xxxxxxxxxxxxx> wrote:
> On Friday 31 August 2007 16:01:40 Till Oliver Knoll wrote:
> > I believe this is a typical job qualification question at Trolltech:
> > "Tell us at least 4 different ways as to make a QString printable on
> > stdout/stderr!"
>
> I'll pass that on to Human Resources ;-)
The follow up question of course is 'Which one is best?' :-)
Rich.
--
[ signature omitted ]
Message 2 in thread
Perhaps you weren't seriously asking, but the:
const char* qPrintable(const QString& str)
(macro) from qglobal.h is my best guess.
# define qPrintable(string) (string).toLocal8Bit().constData()
Richard Moore wrote:
> On 8/31/07, Thiago Macieira <thiago.macieira@xxxxxxxxxxxxx> wrote:
>
>> On Friday 31 August 2007 16:01:40 Till Oliver Knoll wrote:
>>
>>> I believe this is a typical job qualification question at Trolltech:
>>> "Tell us at least 4 different ways as to make a QString printable on
>>> stdout/stderr!"
>>>
>> I'll pass that on to Human Resources ;-)
>>
>
> The follow up question of course is 'Which one is best?' :-)
>
> Rich.
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
>
--
[ signature omitted ]