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. How to send application in foreground and background in Harmattan programatically??

How to send application in foreground and background in Harmattan programatically??

Scheduled Pinned Locked Moved Mobile and Embedded
5 Posts 2 Posters 3.7k 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.
  • T Offline
    T Offline
    TobbY
    wrote on last edited by
    #1

    hi, i am currently working on a project where i want to send application to background on button click and bring foreground after some time. could anyone can help?? thanks

    [edit : minor typos in title fixed, Eddy]

    1 Reply Last reply
    0
    • AlicemirrorA Offline
      AlicemirrorA Offline
      Alicemirror
      wrote on last edited by
      #2

      Hi, maybe a good idea to manage the page stack, pop all the opened pages and see the API that is called when the application goes in background as usual?

      I have not tried this but I see that when I switch the applicaiton from background to foreground the console shows a set of messages regarding what changes. This maybe the starting point.

      Enrico Miglino (aka Alicemirror)
      Balearic Dynamics
      Islas Baleares, Ibiza (Spain)
      www.balearicdynamics.com

      1 Reply Last reply
      0
      • AlicemirrorA Offline
        AlicemirrorA Offline
        Alicemirror
        wrote on last edited by
        #3

        I take a look to the documentation. It seems that you should manage your application status using the QApplication class and its properties. This is the class that grant also access to thte session manager so I think it is possible to activate or deactivate a specific applicaiton.

        Thus in the QApplication class reference I saw that it is possible senEvent() to the application widget and there is one specific event to Activate or Deactivate the application.

        Enrico Miglino (aka Alicemirror)
        Balearic Dynamics
        Islas Baleares, Ibiza (Spain)
        www.balearicdynamics.com

        1 Reply Last reply
        0
        • T Offline
          T Offline
          TobbY
          wrote on last edited by
          #4

          thanks, it would be helpful information. i will check it out

          1 Reply Last reply
          0
          • AlicemirrorA Offline
            AlicemirrorA Offline
            Alicemirror
            wrote on last edited by
            #5

            Well, please let me know the results of your tests.

            Enrico Miglino (aka Alicemirror)
            Balearic Dynamics
            Islas Baleares, Ibiza (Spain)
            www.balearicdynamics.com

            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