title: QPushButton not clickable in MainWindow
body: <p>I'm writing a QT project in Xcode, I made a Widget application in the QT Editor and used the "qmake -spec macx-xcode" to convert the project into an Xcode project. </p>
  
  <p>I have a standard project: </p>
  
  <p>main.cpp</p>
  
  <pre><code>int main(int argc, char *argv[])
  {
      QApplication app(argc, argv);
      MainWindow w;
      w.show();
      return app.exec();
  }
  </code></pre>
  
  <p>main window.cpp</p>
  
  <pre><code>MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new   Ui::MainWindow)
  {
  
      m_button = new QPushButton(this);
      m_button -&gt; setText("button");
      m_button-&gt;setGeometry(QRect(QPoint(100, 100),QSize(200, 50)));
      QPushButton *workingButton = new QPushButton("Hello");
      workingButton -&gt; show();
      connect(m_button, SIGNAL(clicked()), this, SLOT(quitButton()));
      ui-&gt;setupUi(this);
  }
  void MainWindow::quitButton() {
       m_button-&gt;setText("Example");
  }
  
  MainWindow::~MainWindow()
  {
      delete ui;
  }
  </code></pre>
  
  <p>main window.h</p>
  
  <pre><code>namespace Ui {
  class MainWindow;
  }
  
  class MainWindow : public QMainWindow
  {
  
      Q_OBJECT
  
      public:
      explicit MainWindow(QWidget *parent = 0);
  
      ~MainWindow();
  
  private slots:
      void quitButton();
  
  
  private:
      Ui::MainWindow *ui;
      QPushButton *m_button;
  };
  
  #endif
  </code></pre>
  
  <p>The m_button shows up in the mainWindow but it is not clickable but the workingButton, shows up in its own separate window, and in the connect, when I replace the m_button with the workingButton, it is able to call the function. Any idea why the m_button is not sending a signal or function not being called? </p>