[Qt-interest] Strange problem with QFile

Patric userqt at gmail.com
Tue Jul 7 03:43:40 CEST 2009


Another thing I have noticed...
My installation creates a shortcut on my Desktop. 

It seems that when I run the program from the shortcut, QFile makes the file on the Desktop. When I run it from the exe in the installation folder, it will make the file in that directory. 

Any ideas how to avoid this ??

Best regards, 
Patric
  ----- Original Message ----- 
  From: Patric 
  To: qt-interest at trolltech.com 
  Sent: Tuesday, July 07, 2009 4:35 AM
  Subject: Strange problem with QFile


  Hi, 
  I have strange problem here. 

  QFile devicesFile(devices.txt);

  I use this to create a file. When I start my program from QT Creator, the file is saved in the workspace\Project\debug or release folder. So it's not a problem. 

  But when I made my installation package, this file is now saved on my desktop instead of my program installation directory. 
  Does anyone know where might be the reason for this ? 

  Regards, 
  Patric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090707/323303f2/attachment.html 


More information about the Qt-interest-old mailing list