first thanks for reply guru
you are right i am using Qt4.4.3 .... i just follow one good example in net without considering
version .....
first thanks for reply guru
you are right i am using Qt4.4.3 .... i just follow one good example in net without considering
version .....
Just notice that the example you've found is a bit problematic. QString::toLatin1() returns a QByteArray object. You store a pointer to the internal data of that temporary object. "const char* str" is a dangling pointer as soon as the QByteArray object goes out of scope. For more details, see TT knowledgebase: How can I convert a QString to char* and vice versa ?
J-P Nurmi
Bookmarks