... from a QMainWindow ? (but not in main.cpp)
in CLinkGUI.cpp :
void CLinkGUI::tests()
{
ui_sofImpl test;
test.show();
}
void CLinkGUI::tests()
{
ui_sofImpl test;
test.show();
}
To copy to clipboard, switch view to plain text mode
When I do this :
in main.cpp :
int main(int argc, char **argv)
{
ui_murefImpl window;
window.show();
ui_sofImpl test;
test.show();
return app.exec();
}
int main(int argc, char **argv)
{
QApplication app(argc, argv);
ui_murefImpl window;
window.show();
ui_sofImpl test;
test.show();
return app.exec();
}
To copy to clipboard, switch view to plain text mode
it works but that is not what I want...
my not modified main.cpp :
int main(int argc, char **argv)
{
ui_murefImpl window;
window.show();
return app.exec();
}
int main(int argc, char **argv)
{
QApplication app(argc, argv);
ui_murefImpl window;
window.show();
return app.exec();
}
To copy to clipboard, switch view to plain text mode
The first code (in CLinkGUI.cpp) shows me my widget but close it imediately...
Thanks
!
Please delete this topic -> I found the solution : Read the FAQ !
Bookmarks