View Single Post
d-iivil's Avatar
Posts: 2,154 | Thanked: 2,186 times | Joined on Dec 2009 @ Hellsinki, Finland
#125
Originally Posted by Berserk View Post
Although I didn't see it in the above code, does it contain something like the following?
Code:
file.open(QFile::ReadOnly);
I did see some "if not opened in readonly" things in the last posts, but not an explicit .open() function.

Or does a QFile open the file directly after declaring it?

I thought that.. if it's not opened, nothing is read, and the QString stays empty.
Hallelujah! It's working now
I thought it opens the file automaticly, but obviously it didn't
__________________
If you're rich and you think I deserve a cold beer, you may donate one or two :-P

80's style stadium rock is back - FIRENOTE
Hi-Octane heavy metal - FORCE MAJEURE
 

The Following User Says Thank You to d-iivil For This Useful Post: