I wrote an application with Pyside(QtPy). The application allows the user to: 1. Scan a path - Application will scan a default path and display the existing folders in that path as a list of check boxes. 2. User is able to select multiple folders and than execute a process(button) on all of those folders.
In the background: when the user hit 'process', I scan the check boxes list and create a new list only for the selected folder (the 'checked' check boxes or 'user selected folders').
The actual process to those folders will be running in a loop in a QThread class.
The challenge is - How can my QThread use the 'selected folders list' from the main UI method???? At this point the only way I was able to make it work, is by making this list a global parameter. Main UI method set values to the global list, QThread can read that global list.
I've read all possible documentation on signals and slots, and I have no problem sending anything I want from the Qthread to the main UI, but I couldn't find a decent explanation for sending data TO a thread.
Thank you.