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. GUI crash when running in two threads
Forum Updated to NodeBB v4.3 + New Features

GUI crash when running in two threads

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 975 Views 2 Watching
  • 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.
  • Q Offline
    Q Offline
    Qt Enthusiast
    wrote on last edited by
    #1

    https://forum.qt.io/topic/13215/solved-qthread-output-in-qtextedit-without-emitors/2

    but could not undertsand

    I have two threads and One in Tcl Main thread where I enter command in QTextEdit and the command processing is done in other thread

    Now after command processing I get command output

    I am not sure in which thread

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

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

    I

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Why are you trying to send a QTextCursor to the other thread ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • Q Offline
        Q Offline
        Qt Enthusiast
        wrote on last edited by
        #3

        it is mistake but how to solve it I do not

        jsulmJ 1 Reply Last reply
        0
        • Q Qt Enthusiast

          it is mistake but how to solve it I do not

          jsulmJ Online
          jsulmJ Online
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Qt-Enthusiast There is a simple rule: do not access any GUI from other threads (only from GUI thread).
          What do you mean by "it is mistake"? What do you actually want to do? What data do you want to pass to the other thread?

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          3
          • Q Offline
            Q Offline
            Qt Enthusiast
            wrote on last edited by
            #5

            Can we discuss on chat in details

            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