santosh.kumar
16th May 2007, 05:43
hi
i m not getting correct solution.
I m writing coding like this....
////first class
void DirThread::run()
{
if(!bAbort)
{
showDir();
}
}
void DirThread ::showDir()
{
QTreeWidgetItem *pItem = NULL;
pItem = new QTreeWidgetItem(///treeWidget from Gui class);
showDirView(pItem, strPath);
}
void DirThread ::showDirView(QTreeWidgetItem *pItem,QString strPath)
{
//loop up to size of dir
//Recursivly showing dir
for(///loop)
{
if(//dir)
{
showDirView(//treeItem,//path)
}
else
{
//file show
}
}
}
/////Gui class
GuiClass::GuiClass(QWidget *parent):QDialog(parent)
{
setupUi(this);
treeWidget->setColumnCount(1);
}
///I m using this treeWidget Dialog to show recursivly showing dir view
using thread,,,how i call use treeWidget in Thread Method...
please correct this one...
i m not getting correct solution.
I m writing coding like this....
////first class
void DirThread::run()
{
if(!bAbort)
{
showDir();
}
}
void DirThread ::showDir()
{
QTreeWidgetItem *pItem = NULL;
pItem = new QTreeWidgetItem(///treeWidget from Gui class);
showDirView(pItem, strPath);
}
void DirThread ::showDirView(QTreeWidgetItem *pItem,QString strPath)
{
//loop up to size of dir
//Recursivly showing dir
for(///loop)
{
if(//dir)
{
showDirView(//treeItem,//path)
}
else
{
//file show
}
}
}
/////Gui class
GuiClass::GuiClass(QWidget *parent):QDialog(parent)
{
setupUi(this);
treeWidget->setColumnCount(1);
}
///I m using this treeWidget Dialog to show recursivly showing dir view
using thread,,,how i call use treeWidget in Thread Method...
please correct this one...