guidupas
1st September 2014, 22:09
Hello all!
I have an app with a menu bar and a restart process.
When the app is restarted by the process the menu bar disappears.
I am using OSX 10.9
main.cpp
#include "mainwindow.h"
#include <QApplication>
#define CODIGO_RESTART 1000
int main(int argc, char *argv[])
{
int codigoSaida = 0;
do{
QApplication a(argc, argv);
MainWindow w;
w.show();
codigoSaida = a.exec();
}while(codigoSaida == CODIGO_RESTART);
return codigoSaida;
}
restart process
void MainWindow::reiniciar()
{
qApp->exit(1000);
}
When I call reiniciar function, the app restarts but the menu bar do not appears
I have an app with a menu bar and a restart process.
When the app is restarted by the process the menu bar disappears.
I am using OSX 10.9
main.cpp
#include "mainwindow.h"
#include <QApplication>
#define CODIGO_RESTART 1000
int main(int argc, char *argv[])
{
int codigoSaida = 0;
do{
QApplication a(argc, argv);
MainWindow w;
w.show();
codigoSaida = a.exec();
}while(codigoSaida == CODIGO_RESTART);
return codigoSaida;
}
restart process
void MainWindow::reiniciar()
{
qApp->exit(1000);
}
When I call reiniciar function, the app restarts but the menu bar do not appears