Hi.

I'm trying to modify an existing app with two .ui files from which I compiled a Qt project and everything is good so far except for the changes I made to hide one of the ui files at application startup.

It works if I run the generated exe, but not when I open the original app.

I only changed line 15 in the main.cpp from show to hide:

Qt Code:
  1. #include "ExtendFrame.h"
  2. #include "MiniFrame.h"
  3. #include "ui_ExtendFrame.h"
  4. #include "ui_MiniFrame.h"
  5. #include <QApplication>
  6. #include <QtGui>
  7.  
  8. int main(int argc, char *argv[])
  9. {
  10. QApplication a(argc, argv);
  11. miniplugin_bgwidget w;
  12. w.show();
  13.  
  14. miniplugin_bg x;
  15. x.hide();
  16.  
  17. return a.exec();
  18. }
To copy to clipboard, switch view to plain text mode 

No changes are applied to the actual ui files.

Please someone give me hint.