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 operations are performed in a non-gui thread"
Forum Updated to NodeBB v4.3 + New Features

"gui operations are performed in a non-gui thread"

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 814 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.
  • LimerL Offline
    LimerL Offline
    Limer
    wrote on last edited by Limer
    #1

    One day, i saw this point in QQ-chat from a friend, he says, "don not use gui operations in a non-gui thread in Qt, because it will cause some unexpected errors."

    If you konw Chinese , you can see this article: https://blog.csdn.net/u014552102/article/details/80638353

    And, what i want to know , has anyone ever had this problem? This point above is right?

    aha_1980A 1 Reply Last reply
    0
    • LimerL Limer

      One day, i saw this point in QQ-chat from a friend, he says, "don not use gui operations in a non-gui thread in Qt, because it will cause some unexpected errors."

      If you konw Chinese , you can see this article: https://blog.csdn.net/u014552102/article/details/80638353

      And, what i want to know , has anyone ever had this problem? This point above is right?

      aha_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Limer

      your friend is right, GUI must stay in main thread. if you want to manipulare GUI from a thread, emit a signal and perform your task in a main thread slot.

      regards

      Qt has to stay free or it will die.

      LimerL 1 Reply Last reply
      2
      • aha_1980A aha_1980

        @Limer

        your friend is right, GUI must stay in main thread. if you want to manipulare GUI from a thread, emit a signal and perform your task in a main thread slot.

        regards

        LimerL Offline
        LimerL Offline
        Limer
        wrote on last edited by
        #3

        @aha_1980 Thanks. Get it.

        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