Hiding the progress bar when the application is not active



  • How to hide a progress bar dialog in my qt application when i am using another application(example: excel sheet) ?

    Example: My Qt application has a data reader which has a method to load progress bar.
    Since the data loading takes some time i open an excel sheet .
    But everytime the progress bar pops up.
    How to hide the progress bar when i am using another application ?

    Note: I have tried setting the modality :
    progress.setWindowModality(Qt::NonModal);
    Also i have tried withQt::WindowModal ,Qt::ApplicationModal but nothing works.

    Thanks


  • Lifetime Qt Champion

    Hi,

    Can you show the code you are using to update the progress bar ?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.