PDA

View Full Version : showing QLabel on top of all windows - progress indicator



Tomasz
16th December 2010, 15:04
Hello!

Maybe my question is a little bit weird. I've got application with main window, and a 3 hidden windows. It works on full screen without any buttons and title bar. When I push the button on main window the other window shows on top. When I close it - I've got main window. On one window I've got widget that is drawing a little bit long so I want to show QLabel with "Wait" text. That window can be open from main window and from other windows. Widget emits signal when it starts to draw, and when it finishes. On main window I've got slot that show QLabel with 'Wait' text and connections (signals with that slots), but only on main window. Should I place label on each window, and make connections? Or maybe there is other way to do it? As I assume when signal is emitted - functions on each window will start showing 'Wait' message (despite I can't see it)?

Generally I want to show that message only on top window, which opens window with big widget.

thanks in advance
best regards
Tomasz