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. The UI display problem in the thread

The UI display problem in the thread

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 2.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.
  • L Offline
    L Offline
    Lalita
    wrote on last edited by
    #1

    Hello,everyone.Now I need your help about the Qt application.I want to know whether the Qt can provide a method which can display all the UI in a special thread rather than in the main thread in order to avoid the update speed.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andre
      wrote on last edited by
      #2

      No, no such method is available.

      1 Reply Last reply
      0
      • L Offline
        L Offline
        Lalita
        wrote on last edited by
        #3

        Thank you, Andre
        Now I have a project which needs update view when the status changed, but frequent changes happened obviously influence the update speed which causes the view stop. Do you have some advices about this problem?

        1 Reply Last reply
        0
        • A Offline
          A Offline
          andre
          wrote on last edited by
          #4

          Considder throttleing your update frequency. That is: do not update more than 30 times per second at most. Anything faster is not going to be visible by the user anyway. That means that you can buffer updates for that time at least. Best to do this already in the thread providing the updates, as it lightens the load on the UI thread and its eventqueue. It is easy to flood the evenqueue, making the application slow to respond.

          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