You are using a relative path and when the application is "autostarted", the current directory is different than when it is started by clicking an icon. Use an absolute path or change the current directory to a well known directory or use Qt resources.