PDA

View Full Version : access to widgets of statusbar



navid
5th December 2009, 12:11
hi

I added a qlabel to status bar in mainwindow constructor.
how can i change the text of the qlabel in another functions ?



QWidget *w = new QWidget();
statusBar()->addWidget(w, 1);
QLabel *l = new QLabel("Test Label");
statusBar()->addWidget(l, 0);

regards
navid

wysota
5th December 2009, 12:27
Pass a pointer to the other function/class and access it there.