title: Qt QSystemTrayIcon not sending activated signal
body: <p>I'm trying to copy the Qt systray example here:
  <a href="http://doc.qt.io/archives/4.6/desktop-systray.html" rel="nofollow noreferrer">http://doc.qt.io/archives/4.6/desktop-systray.html</a></p>
  
  <p>Things seem to be working except that the QSystemTrayIcon object is not sending an activate signal.</p>
  
  <p>Here's my mainwindow.cpp code:</p>
  
  <pre><code>#include &lt;QtGui&gt;
  
  #include "mainwindow.h"
  #include "ui_mainwindow.h"
  
  MainWindow::MainWindow(QWidget *parent)
      : QMainWindow(parent), ui(new Ui::MainWindow)
  {
      ui-&gt;setupUi(this);
      QMessageBox::information(0, tr("Systray"),
                                tr("Loaded."));
      createTrayIcon();
  
      connect(trayIcon,SIGNAL(activated(QSystemTrayIcon::ActivationReason)),this,
              SLOT(iconActivated(QSystemTrayIcon::ActivationReason)));
  
      trayIcon-&gt;show();
  }
  
  void MainWindow::createTrayIcon()
  {
      trayIcon = new QSystemTrayIcon(this);
  
  }
  
  void MainWindow::iconActivated(QSystemTrayIcon::ActivationReason reason)
  {
      QMessageBox::information(0, tr("Systray"),
                                tr("Testing"));
  
  }
  
  void MainWindow::messageClicked()
  {
       QMessageBox::information(0, tr("Systray"),
                                tr("Sorry, I already gave what help I could.\n"
                                   "Maybe you should try asking a human?"));
   }
  
  MainWindow::~MainWindow()
  {
      delete ui;
  }
  </code></pre>
  
  <p>I'm using Qt 4.5.2 on Windows XP SP2. Could this be an issue with Windows XP? Or am I doing something wrong? I don't have a QIcon set for the trayIcon. Is that a problem?</p>
  
  <p>Any help would be appreciated.</p>
  
  <p>Thanks!
  Jieren</p>