Unsolved How to access UI elements inside Worker class?
I have UI class produced by pyuic, Parent class which inherits and do some stuff like updating text and so, worker class inside same file as the parent class which does some long running task.
I need to access textbox from UI class inside of worker class. How can I achieve it?
class UI(): textbox other_ui_elements ....... class parent(UI): textbox.setText(userInput) .................. class worker(QThread): run(self): for text in textbox: print(text)
@qtDevOps As I wrote in your other thread (https://forum.qt.io/topic/128306/how-to-pass-a-variable-to-a-worker-thread-in-pyqt/4): do not touch UI in other threads...