Hi, Abhishek, :)

On Fri, 17 Dec 2010, Abhishek wrote:

Hi all,I have a general coding question as opposed to specific to
pyqt. In a gui, if I want to have a status message box (a QLabel)
which should display messages from all components of the gui, what
is the best way to go about it? Should all the components need to
have a pointer to the QLabel? Or should I make a static class which
any component can access and use this class to update the QLabel?
Any other ideas?

I would prefer having each component emit() a signal with the status
text as the argument and then connect() those signals to the QLabel's
setText() slot.

---Jason
_______________________________________________
PyQt mailing list    [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to