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. [SOLVED] Problem with QThread on a single computer
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] Problem with QThread on a single computer

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 291 Views 1 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.
  • L Offline
    L Offline
    Linhares
    wrote on 3 Sept 2022, 14:43 last edited by Linhares 9 Mar 2022, 15:48
    #1

    I have a program that works correctly on my computer and on many users' computers. However, a new user has reported an error when he tries execute a process that involves a new thread.
    Here's the message he gets:
    QObject: Cannot create children for a parent that is in a different thread.

    (Parent is Class1(0x9597868), parent's thread is QThread(0xd3bba8), current thread is Class1(0x9597868)
    QObject: Cannot create children for a parent that is in a different thread.
    (Parent is QSerialPort(0x4ae01a8), parent's thread is Class1(0x9597868), current thread is QThread(0xd3bba8)

    What makes me puzzled is that other users don't get this error.
    The user who has the issue is using Windows 10, the same as everyone else is using.
    What would explain this odd behavior?

    C 1 Reply Last reply 3 Sept 2022, 14:47
    0
    • L Linhares
      3 Sept 2022, 14:43

      I have a program that works correctly on my computer and on many users' computers. However, a new user has reported an error when he tries execute a process that involves a new thread.
      Here's the message he gets:
      QObject: Cannot create children for a parent that is in a different thread.

      (Parent is Class1(0x9597868), parent's thread is QThread(0xd3bba8), current thread is Class1(0x9597868)
      QObject: Cannot create children for a parent that is in a different thread.
      (Parent is QSerialPort(0x4ae01a8), parent's thread is Class1(0x9597868), current thread is QThread(0xd3bba8)

      What makes me puzzled is that other users don't get this error.
      The user who has the issue is using Windows 10, the same as everyone else is using.
      What would explain this odd behavior?

      C Offline
      C Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on 3 Sept 2022, 14:47 last edited by
      #2

      @Linhares said in Problem with QThread on a single computer:

      What would explain this odd behavior?

      The others simply don't look at the output. The output is correct and you need to fix it.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      2
      • L Offline
        L Offline
        Linhares
        wrote on 3 Sept 2022, 14:55 last edited by
        #3

        @Christian-Ehrlicher gee, you're right!
        Now I've just realized I get the same message. However, contrarily to what happens to this user, the device we're aiming to connect works correctly on my computer. But now I know his problem needs to be solved in a difference process.
        Thanks for your help!

        1 Reply Last reply
        0

        1/3

        3 Sept 2022, 14:43

        • Login

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