Qt World Summit: Submit your Presentation

Problem with program that performs multiple processes.

  • I have a program ( in Python3 ) that should run different threads.
    In this program I tried to create a graphical interface with the QtDesigner 4 program.

    So I added a "Text Edit" object in the graphic interface.

    The problem I have, occurs when i ".append" text to "Text Edit" object.

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

    I have read that it is not allowed to handle the GUI from other processes .. but now my problem is I can not avoid it ..

    So that I could handle this problem?

    Thank you in advance for your time :)

    (Sorry for my bad english.)

  • the Qt way for threading and GUI, is using signal and slots.
    look here for an example.

    regarding QObject::connect: Cannot queue arguments of type 'QTextCursor', you shold actually call somewhere early in you program,
    also, look here

  • How can i create my signal for text edit with python3 ?
    With as many ways i tried, but I did not succeed .. :(