Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Problem with program that performs multiple processes.

    General and Desktop
    python python3 pyqt pyqt4 pyuic thread threading threads multithreads gui qtdesigner
    2
    3
    2964
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      Tas-sos last edited by

      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.)

      1 Reply Last reply Reply Quote 0
      • Y
        yoavmil last edited by

        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,
        qRegisterMetaType(QTextCursor)
        also, look here

        1 Reply Last reply Reply Quote 0
        • T
          Tas-sos last edited by

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

          1 Reply Last reply Reply Quote 0
          • First post
            Last post