void Lister::readthread() {
textview->setText("Lister::listed2");
textview->setText(Lister:path0); //In this case 2nd line render but no first one, so the first line do not //render anyway
}
void Lister::readthread() {
textview->setText("Lister::listed2");
textview->setText(Lister:path0); //In this case 2nd line render but no first one, so the first line do not //render anyway
}
To copy to clipboard, switch view to plain text mode
I have found the solution but not very fine as it works but for big folders like C:\Windows it use too much memory for the whole Windows XP system.
void Lister::slot() {
textview->setText("Lister::listed2");
textview->setText(Lister::listed2);
}
void Lister::readthread() {
RThread* R=new RThread();
R->start();
QObject::connect(R,
SIGNAL(finished
()),
this,
SLOT(slot()));
//textview->setText("Lister::listed2");
//textview->setText(Lister::listed2);
}
void Lister::slot() {
textview->setText("Lister::listed2");
textview->setText(Lister::listed2);
}
void Lister::readthread() {
RThread* R=new RThread();
R->start();
QObject::connect(R, SIGNAL(finished()),this, SLOT(slot()));
//textview->setText("Lister::listed2");
//textview->setText(Lister::listed2);
}
To copy to clipboard, switch view to plain text mode
-- So I can do the conclusion about inefficiency of using threads for rendering a big text areas to Qtextedit.
Bookmarks