[Qt-interest] problem with QFileInfo

Scott Aron Bloom Scott.Bloom at sabgroup.com
Thu Feb 19 03:13:16 CET 2009


Its normal... since you send in a relative path, the path back is "."

Look at absolutePath and absoluteFilePath

Scott
> -----Original Message-----
> From: qt-interest-bounces at trolltech.com [mailto:qt-interest-
> bounces at trolltech.com] On Behalf Of wim.delvaux at adaptiveplanet.com
> Sent: Wednesday, February 18, 2009 6:07 PM
> To: qt-interest at trolltech.com
> Subject: [Qt-interest] problem with QFileInfo
> 
> Hi,
> 
> I got this file "AP.FormEditor.FormVHACCT_1.0.0"
> 
> Passing that file to QFileInfo yields a path() as "."
> 
> so
> QFileInfo().path() returns "."
> 
> Is this normal ? or a bug of version 4.3.4
> 
> Thx
> W
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest




More information about the Qt-interest-old mailing list