Nominate our 2022 Qt Champions!

How to apply QProgress Bar with Third party library loading

  • Hello guys,

    I want to ask a question about QProgressBar. We have an application that is using third party graphic library and we have created an installation wizard that shows the installation progress. ( %1--%90). But we loads third party library so we can not know the exact percentage of progress while installing application. How can we solve this?

    Thanks in advanve.

  • Moderators

    Hi, welcome to devenet.

    If you don't know the actual percentage the only thing you can do is set a busy indicator i.e. a progress bar displaying a special animation that something is going on but without specific progress value. With QProgressBar this is done by setting both minimum and maximum value to 0, as described in the docs.

  • @Chris-Kawa Hi Chris,

    Thank you for your answer. I will try these :)

Log in to reply