You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to QtContribs
Hi Pritpal, I found a problem using QFileInfo. I have coded LOCAL oFileInfo oFileInfo := QFileInfo( "the_name_of_the_file" ) ? hb_ValToExp( oFileInfo:exists() )
last row show false but the_name_of_the_file (I'm sure) exists; it is in the same path of the program.
So I try this code LOCAL oFileInfo oFileInfo := QFileInfo() oFileInfo:setFile( "the_name_of_the_file" ) ? hb_ValToExp( oFileInfo:exists() )
last row show true as expected.
Can be due to argument conversion? I'm speaking about hb_parstr_utf8 into the QFileInfo.qth constructor. Instead setFile is coded as void setFile ( const QString & file ) perhaps conversion is done somewhere (I don't know); I only see this difference.