Qt-interest Archive, April 2008
qPrintablel not working in 4.4.0
Message 1 in thread
QString s("(0,144,0)");
const char* sz = qPrintable(s);
sz
="îþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþî
etc.
--
[ signature omitted ]
Message 2 in thread
qPrintable returns a temporary pointer.
The moment the statement is executed, the pointer is gone...
Scott
-----Original Message-----
From: John Smith [mailto:invalid@xxxxxxxxxxx]
Sent: Monday, April 21, 2008 1:49 PM
To: qt-interest@xxxxxxxxxxxxx
Subject: qPrintablel not working in 4.4.0
QString s("(0,144,0)");
const char* sz = qPrintable(s);
sz
="îþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþî
etc.
--
[ signature omitted ]