hi all could do with some help

I can't get this to work

Qt Code:
  1. self.setWindowIcon(QIcon("file.jpg"))
To copy to clipboard, switch view to plain text mode 

if i write it with a full path it works, but with a relative path like this it won't.

am i doing something wrong or does QT not except relative file name?

thanks for any help