Thanks for your help d_stranz. I did what you said about bitwise operators.
I figured out my problem, but i don't know exactly why and how to solve this. The problem is i instanced the File object in the MainWindow class definition. The problem is this object has to be alive all the time(until i close my program).
Bookmarks