Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Minimizing QT Application

Minimizing QT Application

Scheduled Pinned Locked Moved Mobile and Embedded
2 Posts 2 Posters 853 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    pankaj2590
    wrote on last edited by
    #1

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

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

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

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

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved