nackasha
2nd August 2011, 20:54
Hello Folks,
I have Widgets A and B. Lets say Widget A has a push button to assign x1=true, while it is initially is initialized to false.
What i want to do is show Widget A, then after pressing the push button Widget A hides and Widget B appears.
I 'think' I am not really understanding the loop event sequence. My code is as the following:
#include <QtGui/QApplication>
#include "mainwindow.h"
#include "startupscreen.h"
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
StartUpScreen startup;
startup.show();
if (startup.x1)
{
MainWindow w;
w.show();
startup.hide();
}
return a.exec();
}
Thank you very much,
I have Widgets A and B. Lets say Widget A has a push button to assign x1=true, while it is initially is initialized to false.
What i want to do is show Widget A, then after pressing the push button Widget A hides and Widget B appears.
I 'think' I am not really understanding the loop event sequence. My code is as the following:
#include <QtGui/QApplication>
#include "mainwindow.h"
#include "startupscreen.h"
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
StartUpScreen startup;
startup.show();
if (startup.x1)
{
MainWindow w;
w.show();
startup.hide();
}
return a.exec();
}
Thank you very much,