I have the following code in my constructor:

Qt Code:
  1. xRotLabel = new QLabel(this); // "QLabel *xRotLabel;" is in .h file
  2. xRotLabel->setText("Initial Text");
  3. connect(mb0pButton, SIGNAL(buttonClicked()), this, SLOT(changeText()));
To copy to clipboard, switch view to plain text mode 
here's the changeText() function:
Qt Code:
  1. void Window::changeText()
  2. {
  3. xRotLabel->setText("Changed Text");
  4. }
To copy to clipboard, switch view to plain text mode 

I want to click the "mb0pButton" to make the text in the QLabel change, but it's not working. What am I missing?