[Qt-interest] Process_line

Gian Marco Gallo gianmarco.gallo at gmail.com
Mon Nov 9 17:25:13 CET 2009


Good afternoon

I'm reading the QFile class definition and there's a part of code that  
I'm not able to compile:

QFile file("in.txt");
         if (!file.open(QIODevice::ReadOnly | QIODevice::Text))
             return;

         while (!file.atEnd()) {
             QByteArray line = file.readLine();
             process_line(line);
         }

In this part of code I can directly read the content of a file but I  
don't understand from where process_line method comes out. I've tried  
to search if it's a c++ method but it's not, I've tried to search if  
it's a qt class method but it's not...so?

Thanks


Gian Marco Gallo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091109/55c91726/attachment.html 


More information about the Qt-interest-old mailing list