Minimizing QT Application



  • 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.

    I am testing this code on ARM Board. 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();
    }

    Thanks for any kind of help..


  • Lifetime Qt Champion

    Hi,

    Please don't post the same thread in multiple sub-forums one is enough

    "Duplicate":http://qt-project.org/forums/viewthread/38849/


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.