Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6241345
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T11:45:08+00:00 2026-05-24T11:45:08+00:00

I am new to Qt Programming, but I have basic on C++. I want

  • 0

I am new to Qt Programming, but I have basic on C++.

I want to update my GUI while it is processing, example:

while (....)
{

        do some calculation...

        if (condition fulfill)

            change the color of label.
}

However, I realise that I failed to get the result I want (update the GUI while processing). The GUI will only update after the while loop.
Why is it so? Anyone can help?

In addition, I wish to “slower” the color change since the processing is too fast and I can’t see the animation. Any idea to do it?

Thank you very much!

Clarification:
Actually I wish to update the GUI while I am processing…Meaning that, if I have 100 iteration, after each iteration I wish to update the GUI immediately.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T11:45:09+00:00Added an answer on May 24, 2026 at 11:45 am

    You have to place your processing code to another thread and update the gui, because like this GUI will be waiting for your process to end and will refresh after its end

    read more here:
    http://www.qtcentre.org/threads/41545-How-to-refresh-GUI-while-heavy-processing-is-ongoing
    http://www.qtcentre.org/threads/32416-Update-GUI-from-another-thread
    Forcing the Qt GUI to update

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm fairly new to Visual Studio (specifically Visual Basic .NET) but have been programming
I’m new to visual basic.net . I have experience in C++ programming, but never
I'm new to C# and don't have any programming experience. But I've finish a
I have done Java and JSP programming in the past, but I am new
I'm new to GUI programming, but need to create a multiple window GUI. Does
I am new to VSTO programming. I have created a basic addin for Outlook
Im new to python programming and need some help with some basic file I/O
I am a programming enthusiast with a basic programming background, but I'm completely new
I've been doing some very basic SNMP4J programming. All I want to do is
I've done a fair bit of mysql php programming but am pretty new to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.