Waw !!
Beautiful answer... Thanks a lot for the time and patience.
Long live QtCentre
Waw !!
Beautiful answer... Thanks a lot for the time and patience.
Long live QtCentre
We can't solve problems by using the same kind of thinking we used when we created them
After this discussions and the subsequent discussion with Qt-Interest mailing list. I had requested the change told above. Trolltech has accepted the change request and has modified the faq
Here is the link to that
http://www.trolltech.com/developer/k...-30.9032238253
Thanks once again.
We can't solve problems by using the same kind of thinking we used when we created them
bruccutler (13th February 2007)
Btw, jacek wrote delete [] cstr, but you dont need to delete a pointer unless you initialized it with new keyword.
From the docs:
char * qstrdup ( const char * src ) Returns a duplicate string.
Allocates space for a copy of src, copies it, and returns a pointer to the copy. If src is 0, it immediately returns 0.
Ownership is passed to the caller, so the returned string must be deleted using delete[]
We can't solve problems by using the same kind of thinking we used when we created them
Bookmarks