Hi,

I have got a problem. I want my application to minimize or run that process in background (Actually, this process only responds to touch). I have used QmlApplicationViewer for view purpose.

I am sending a message Using IPC mechenism to move process in background. On getting Message, i am calling showMinimized() and showMaximized() functions.

I have also installed event handler and in event handler, when i get the qevent ApplicationDeactivated, i am calling hide method for view.

The Problem is, on calling showMinimized(), process get minimize but and ApplicationDeactivated event is listen by the application and after few millisecond, it listen ApplicationActivate but QML Page are hidden. On touch, this process responds.

@
event listening:
if(event->type()==QEvent::ApplicationActivated)
{
event->ignore();
qDebug(“Application Activated”);
}
if(event->type()==QEvent::ApplicationDeactivated)
{
event->ignore();
qDebug(“Application Deactivated”);
if (view->isMinimized())
{
view->hide();
event->ignore();
}
}

Minimizing and Maximizing:

if(iCmd == DIPO_MINIMIZE)
{
view->showMinimized();
}
else if(iCmd == DIPO_MAXIMIZE)
{
view->showNormal();
}
@
I have tested this code on Desktop and Also on ARM board both with Ubuntu OS and QT-4.8.2. This works find for Desktop but not for ARM board.