[Qt-interest] statusBar()
John McClurkin
jwm at nei.nih.gov
Thu Mar 26 12:57:39 CET 2009
Sujan Dasmahapatra wrote:
> Dear Friends
>
> In my prpoject I have many classes and the main class is “MainWindow”
> which is derived from QMainWindow. So I am able to show message in my
> ‘MainWindow’ class……How could I show message on the statusBar from any
> other class. When I am trying to do that its not happening.Plss tell me
> some idea to show message from other class than MainWindow..
In MainWindow, get the status bar message with
statusBar->currentMessage(). Emit a signal that has a QString object as
an argument. Connect slots in other windows to this signal. In the
slots, display the message however you want.
More information about the Qt-interest-old
mailing list