[Qt-interest] QProcessBar while read file
Mhayk Whandson
eu at mhayk.com.br
Wed Oct 14 14:00:23 CEST 2009
Hi all,
I would like using qprocessbar while my application read the text
file, How can I do ? The code is following:
QFile file(m_ui->lineEdit->text());
if (!file.open(QIODevice::ReadOnly | QIODevice::Text))
return;
while(!file.atEnd()) {
QByteArray line = file.readLine();
qDebug() << line;
}
best regards,
--
Mhayk Whandson
Linux User #413723
E-mail: eu at mhayk.com.br
More information about the Qt-interest-old
mailing list