Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Problem with program that performs multiple processes.
QtWS25 Last Chance

Problem with program that performs multiple processes.

Scheduled Pinned Locked Moved General and Desktop
pythonpython3pyqtpyqt4pyuicthreadthreadingthreadsmultithreadsguiqtdesigner
3 Posts 2 Posters 3.4k Views
  • 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 Offline
    T Offline
    Tas-sos
    wrote on last edited by
    #1

    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
    0
    • Y Offline
      Y Offline
      yoavmil
      wrote on last edited by
      #2

      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
      0
      • T Offline
        T Offline
        Tas-sos
        wrote on last edited by
        #3

        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
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved