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. How to create GUI object in Qthread function or object and pass them to main Gui thread?
Forum Updated to NodeBB v4.3 + New Features

How to create GUI object in Qthread function or object and pass them to main Gui thread?

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 502 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.
  • H Offline
    H Offline
    Hitesh Patel
    wrote on 8 Jul 2017, 07:06 last edited by
    #1

    Dear All,

    I am developing Control system GUI which required to create remote server proxy and due to this my main gui thread hangs because of server disconnection or slow response.

    Please guide me how to create GUI object in Qthread and pass it to main thread so main thread never hangs.

    We are Using Taurusdesigner for development which is inherited from Qt designer.

    Thanks,
    Hitesh Patel

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 8 Jul 2017, 08:44 last edited by
      #2

      Hi
      GUI objects can ONLY live in the main thread.
      You should move the communication with server to a thread and let it send signals to the
      GUI thread to display status / information.

      1 Reply Last reply
      2

      1/2

      8 Jul 2017, 07:06

      • Login

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