[Qt-interest] Strange problem with QFile

Patric userqt at gmail.com
Tue Jul 7 10:38:34 CEST 2009


I found out where is the problem. It was in the installation script actually, I have forgotten to set the working app for the desktop icon. 

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


  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/b9feb756/attachment.html 


More information about the Qt-interest-old mailing list