Program does not appear in TaskBar
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:
Code:
int main(int argc, char *argv[]){
app.setStyleSheet(stylesheet);
PMain pm(0);
return app.exec();
}
Log("P system started.");
pui.setupUi(qmw);
rows = 10;
qmw->show();
connect(pui.actionSave, SIGNAL(triggered()), this, SLOT(s_Save()));
connect(pui.actionSave_As, SIGNAL(triggered()), this, SLOT(s_SaveAs()));
connect(pui.actionOpen, SIGNAL(triggered()), this, SLOT(s_Open()));
}
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.
Re: Program does not appear in TaskBar
Presumably you wanted something like this:
Code:
int main(int argc, char *argv[]){
app.setStyleSheet(stylesheet);
PMain pm(0);
pm.show(); // <--
return app.exec();
}
{
...
};
Log("P system started.");
pui.setupUi(this); // <--
rows = 10;
connect(pui.actionSave, SIGNAL(triggered()), this, SLOT(s_Save()));
connect(pui.actionSave_As, SIGNAL(triggered()), this, SLOT(s_SaveAs()));
connect(pui.actionOpen, SIGNAL(triggered()), this, SLOT(s_Open()));
}
Re: Program does not appear in TaskBar
Thanks a lot Honorable Sir.