c++Builder移植到Qt LoadFromFile()应该变成什么?解决方法

c++Builder移植到Qt LoadFromFile()应该变成什么?
c++Builder移植到Qt LoadFromFile()应该变成Qt中的什么函数呢,或者有什么函数可以实现这种功能?c++Builder移植到Qt LoadFromFile()应该变成什么?解决方法
------解决方案--------------------

QStringList stringList;
QFile textFile;
//... (open the file for reading, etc.)
QTextStream textStream(&textFile);
while (true)
{
    QString line = textStream.readLine();
    if (line.isNull())
        break;
    else
        stringList.append(line);
}