Hi all, I'm programming an application and in some cases I need to show QProgressBars when some lengthy process is running. This process can be started from another window that stays on the top of the window where the progress bars really have to be shown. The problem is that the progress bars are always shown even if I start the process from the other window, and in this case I want that the progress bars not appear under the current window because it's a bit annoying. I thougth setting the current window Qt::WindowStaysOnTopHint but it only works for top level windows. Another solution could be not showing the progress bars if the window is totally hidden by another window but I don't know how to make it. Any suggestions please?
Thanks a lot.


Reply With Quote

I will try it with QApplication::activeWindow () i think it will work to show or not the progress dialog. But do you know any other way to show the progress dialog but behind the current/active window? In this way if the current window is not at full screen may be some parts or the totality of the progress dialog is shown if it's not obscured by the current window

Bookmarks