[Qt-creator] To Open a File and Read It.
Keiver Hdez Fdez
khfernandez at estudiantes.uci.cu
Mon Feb 2 09:40:03 CET 2009
Hi there;
I'm using Qt Creator in a small application and I need to open a file and read it. The thing is that I have this code:
QFile file("config/exclude_files.exc");
if (!file.open(QIODevice::ReadOnly | QIODevice::Text))
{
...
}
If I execute the application by clicking, it does not work and if I executed in a terminal it works fine.
Any clues?
Using:
Qt Creator 0.9.2
Based on Qt 4.5.0
Built on Jan 27 2009 at 03:49:58
OS: Debian GNU/Linux
More information about the Qt-creator-old
mailing list