[Qt-interest] QStringList copy constructor doing something funny?
Mandeep Sandhu
mandeepsandhu.chd at gmail.com
Fri Sep 16 13:34:13 CEST 2011
> Sorry, but this is pure nonsense. The QFileInfo constructor will copy
> the string and store it locally. The problem is somewhere else in the code.
Oops! I jumped the gun too soon! Sorry.
This code works:
QStringList fn;
fn << "main.cpp";
QFileInfo fi(fn.at(0));
qDebug() << "Info:" << fi.absoluteFilePath();
So yes, the problem is elsewhere.
-mandeep
>
> Bo Thorsen,
> Fionia Software.
>
> --
>
> Expert Qt and C++ developer for hire
> Contact me if you need expert Qt help
> http://www.fioniasoftware.dk
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
>
More information about the Qt-interest-old
mailing list