PDA

View Full Version : how to get output of QThread to main ui



narlapavan
7th February 2012, 16:19
i had a button .on clicking that button i am calling a CThread.cpp file in which i implemented QThread which is having some functionality, suppose if the functionality is finding ".txt" files in system. suppose if i got 5 files , i stored it in QStringList .Now i want to accesses that QStringlist in main ui and populate the content of QStringlist in main ui.

Lesiok
7th February 2012, 17:09
Use signals and slots. After finding a file send signal with file name as parameter.