First of all you cannot update QTableWidget with a thread. If you want threading then use QTableView and a custom model that will receive data in the worker thread and pass it to the GUI thread through a signal.

If QLineEdit becomes "disabled" when the widget is updated then most likely it is not updated from within the thread but rather by the GUI thread.

You can read this paper to learn about some approaches to do it without threads: https://doc.qt.io/archives/qq/qq27-responsive-guis.html