agent007se
20th July 2006, 06:33
... from a QMainWindow ? (but not in main.cpp)
in CLinkGUI.cpp :
void CLinkGUI::tests()
{
ui_sofImpl test;
test.show();
}
When I do this :
in main.cpp :
int main(int argc, char **argv)
{
QApplication app(argc, argv);
ui_murefImpl window;
window.show();
ui_sofImpl test;
test.show();
return app.exec();
}
it works but that is not what I want...
my not modified main.cpp :
int main(int argc, char **argv)
{
QApplication app(argc, argv);
ui_murefImpl window;
window.show();
return app.exec();
}
The first code (in CLinkGUI.cpp) shows me my widget but close it imediately...
Thanks :D !
Please delete this topic -> I found the solution : Read the FAQ !
in CLinkGUI.cpp :
void CLinkGUI::tests()
{
ui_sofImpl test;
test.show();
}
When I do this :
in main.cpp :
int main(int argc, char **argv)
{
QApplication app(argc, argv);
ui_murefImpl window;
window.show();
ui_sofImpl test;
test.show();
return app.exec();
}
it works but that is not what I want...
my not modified main.cpp :
int main(int argc, char **argv)
{
QApplication app(argc, argv);
ui_murefImpl window;
window.show();
return app.exec();
}
The first code (in CLinkGUI.cpp) shows me my widget but close it imediately...
Thanks :D !
Please delete this topic -> I found the solution : Read the FAQ !