[Qt-interest] QString::toStdString() problem

hakiim the dream hakiim35 at hotmail.com
Mon Mar 8 09:44:00 CET 2010


well, its strange that i still couldnt solve the problem. I have cleaned and rebuilt the solution but didnt help.I get a QString from OpenFileDialog and apply a method named splitAndMerge on it, to convert it from "C:/blabla/.." to "C:\\blabla\\.." .I apply that function inside the private open() slot.Then i convert that QString to std::string, which is a public pointer member of the same class. (string * srcFilename)I just try to allocate the string with srcFilename = new string(s.toStdString()); or srcFilename = new string(s.toLatin1());inside the same slot, just after applying the splitAndMerge method, but neither of them works.
my config is QT4.6 open source on VS2008, and I work on Debug mode..Any suggestion is appreciated..
 		 	   		  
_________________________________________________________________
Yeni Windows 7: Size en uygun bilgisayarı bulun. Daha fazla bilgi edinin.
http://windows.microsoft.com/shop
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100308/f7d46f6c/attachment.html 


More information about the Qt-interest-old mailing list