I have a program that seems to (both in XP and Vista) not show on the taskbar when it is launched.

I launch the program but it never shows up on my task bar.

Here's how I initiate my program:
Qt Code:
  1. int main(int argc, char *argv[]){
  2. QApplication app(argc, argv);
  3. QString stylesheet("");
  4. app.setStyleSheet(stylesheet);
  5. PMain pm(0);
  6. return app.exec();
  7. }
  8.  
  9. PMain::PMain(QWidget *parent) : QWidget(parent) {
  10. qmw = new QMainWindow(this);
  11. Log("P system started.");
  12. pui.setupUi(qmw);
  13. rows = 10;
  14. qmw->show();
  15. connect(pui.actionSave, SIGNAL(triggered()), this, SLOT(s_Save()));
  16. connect(pui.actionSave_As, SIGNAL(triggered()), this, SLOT(s_SaveAs()));
  17. connect(pui.actionOpen, SIGNAL(triggered()), this, SLOT(s_Open()));
  18. }
To copy to clipboard, switch view to plain text mode 

I used Designer to make my GUI which is what pui is.
I compile using qmake, make...

I don't know if it is related but there is also an error where when I click on the "X" of the program, it closes but the process doesn't disappear from task manager.

I'm using Qt 4.4 with mingw.