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:
#include "ExtendFrame.h"
#include "MiniFrame.h"
#include "ui_ExtendFrame.h"
#include "ui_MiniFrame.h"
#include <QApplication>
#include <QtGui>
int main(int argc, char *argv[])
{
miniplugin_bgwidget w;
w.show();
miniplugin_bg x;
x.hide();
return a.exec();
}
#include "ExtendFrame.h"
#include "MiniFrame.h"
#include "ui_ExtendFrame.h"
#include "ui_MiniFrame.h"
#include <QApplication>
#include <QtGui>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
miniplugin_bgwidget w;
w.show();
miniplugin_bg x;
x.hide();
return a.exec();
}
To copy to clipboard, switch view to plain text mode
No changes are applied to the actual ui files.
Please someone give me hint.
Bookmarks