Can not open file ( Qt )

This is a discussion on Can not open file ( Qt ) within the C++ Programming forums, part of the General Programming Boards category; Ok I have a file with constant name and want to open it.
I am using Qt framework and I ...

Can not open file ( Qt )

Ok I have a file with constant name and want to open it.

I am using Qt framework and I am on Mac.

The path of my project is :
~Desktop/RayTracerFrameWorkOOP/
(here I have everything, header, source files and all the relevant files of Qt)
Here I have the file that I need to read from too. What I think is remarkable is that the file is of kind : Unix executable file

From Qt IDE I open the project from the recent projects option with this path :
~Desktop/RayTracerFrameWorkOOP/QImageViewer.pro

The real question is, where is your executable (the result of the build process) and where is your data file? Unless they're in the same directory or the data file is in the directory QtCreator uses as the working directory when you launch, it won't find it.