jorge-ramirez-upm / RepTate

RepTate (Rheology of Entangled Polymers: Toolkit for Analysis of Theory & Experiment)
https://reptate.readthedocs.io/
GNU General Public License v3.0
25 stars 7 forks source link

Warning in terminal when using multithreads #59

Closed vbdr closed 6 years ago

vbdr commented 6 years ago

Warning:

QObject::connect: Cannot queue arguments of type 'QTextCursor' (Make sure 'QTextCursor' is registered using qRegisterMetaType().)

is printed in terminal when calculating theory. It seems that calling the "thTextBox" widget in Theory.py is not allowed outside the main Qt loop. A solution might be to use Qt signals and slots to print messages in thTextBox from a thread.

vbdr commented 6 years ago

Qprint is now used via a pyqtSignal.

jorge-ramirez-upm commented 6 years ago

That is great!

On Fri, Jan 26, 2018, 12:51 AM Victor B notifications@github.com wrote:

Qprint is now used via a pyqtSignal.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jorge-ramirez-upm/RepTate/issues/59#issuecomment-360639653, or mute the thread https://github.com/notifications/unsubscribe-auth/AUGIHSHkhd_d1N7JDFKpcbf95_UbBSRTks5tORNvgaJpZM4RUc_i .