Re: How to read a value from tow columns file !

Originally Posted by
mejacky
i've noticed that with help from qdebug() ..thx prasad_N

I hope you don't mind me posting, but you really should spend some time and learn how to set breakpoints and inspect variables using the Qt Creator debugger. This could have been solved very quickly had you simply set a breakpoint after you split the line and inspect your QStringList. You would have noticed that the line was actually not split and consisted of a single value and the QStringList count would have been 1.
Once you become good at debugging, you'll save tons of time solving trivial problems. You'll never solve more complex problems with the shotgun approach in my experience.
Good luck!
I write the best type of code possible, code that I want to write, not code that someone tells me to write!
Bookmarks