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

  • SEARCH
  • Home
  • 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 1042013
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T15:26:27+00:00 2026-05-16T15:26:27+00:00

Im using Qt framework , and i looking for the best method to show

  • 0

Im using Qt framework , and i looking for the best method to show the user im processing something
how in Qt i can:
put the main window in the background and pop up window to the foreground with
for example ” processing ” massage
until its done processing the ” processing ” window will close and the main window returns to the foreground .

  • 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-16T15:26:28+00:00Added an answer on May 16, 2026 at 3:26 pm

    Use QProgressDialog. It is designed for that kind of use. You can use the QProgressDialog as a modal dialog thus preventing any user interaction to your main window. QProgressDialog also gives you an easy way to present the progress of your processing and an optional pushbutton to abort processing.

    Edit:

    QProgressBar can be used in two states: progressing in steps or just showing busy state.

    QProgressDialog’s progress bar cannot be used showing busy state because that would require setting QProgressDialog’s min and max values to 0, which immediately closes the progress dialog. However, you can give the QProgressDialog a new progress bar using setBar()-function. Then you can set this progress bar’s min, max and value to 0 and then getting the busy look.

    QProgressDialog progressDialog("Processing...", "Abort", 0, INT_MAX, this);
    
    QProgressBar* bar = new QProgressBar(&progressDialog);
    bar->setRange(0, 0);
    bar->setValue(0);
    progress.setBar(bar);
    
    progressDialog.setMinimumWidth(350);
    progressDialog.setMinimumDuration(1000);
    progressDialog.setWindowModality(Qt::WindowModal);
    progressDialog.setValue(0);
    
    
    // Do your time consuming processing here, but remember to change 
    // the progress dialog's value a few times per second. 
    // That will keep the busy indicator moving.
    progressDialog.setValue(progressDialog.value() + 1);
    
    // And check if the user has cancelled the processing
    if (progressDialog.wasCanceled())
        break or return or whatever necessary
    
    
    // When your processing is done, close the dialog.
    progressDialog.close();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was looking at Zend_Paginator in Zend Framework project using MVC, and it looks
I'm looking into using a javascript logging framework in my app. I quite like
I'm looking for a framework or an implementation of Asynchronous Java RMI (preferably using
we are using framework 3.5 please let me know how can I achieve following
I am looking into using Doctrine2 with my Zend Framework setup. I really like
I am using C# and .Net Framework 4. I am looking for a foolproof
Background I have a payment page where the user can select from a list
I currently have an n-tier application using entity framework 4.0 and we're looking at
I'm looking for the best way to verify that a given method (the unit)
Using C# (the .NET framework), I'm looping through all the TimeZones and their AdjustmentRules...

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.