Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to run application in background?
QtWS25 Last Chance

How to run application in background?

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 3 Posters 3.4k 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.
  • I Offline
    I Offline
    Ibrahim
    wrote on last edited by
    #1

    Hi; I want to run my application in background for desktop and mobile. How can I do that? I know JNI for Android but I am asking: There is a class or namespace in Qt to running in background? Thanks.

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

      Hi,

      What kind of application do you have in mind ?

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

      I 1 Reply Last reply
      0
      • TrilecT Offline
        TrilecT Offline
        Trilec
        wrote on last edited by
        #3

        Hi Ibrahim,
        you may want to look into QProcess, its used to start external programs and to communicate with them. (through communication is more complex if its a detached background task ie. QProcess::startDetached.

        There are meany options for controlling its behavior...

        http://doc.qt.io/qt-5/qprocess.html

        hope that helps

        If ts not in the computer it doesn't exist!...

        1 Reply Last reply
        1
        • SGaistS SGaist

          Hi,

          What kind of application do you have in mind ?

          I Offline
          I Offline
          Ibrahim
          wrote on last edited by
          #4

          @SGaist I want to learn power of Qt for mobile and desktop. Provision for android is Service and this.
          @Trilec thanks, Is running in background this member function?

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

            A service like in Android and a desktop service are currently quiet different even with Qt to help these are really two different concepts.

            What will your service do ?

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

            I 1 Reply Last reply
            0
            • SGaistS SGaist

              A service like in Android and a desktop service are currently quiet different even with Qt to help these are really two different concepts.

              What will your service do ?

              I Offline
              I Offline
              Ibrahim
              wrote on last edited by Ibrahim
              #6

              @SGaist I want to learn that concepts. Example is application update own database in background. (Example image to running in background.)

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

                Then I'd recommend to take a look at KDAB's Qt on Android Episode 7 article as well as the ones before.

                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
                1

                • Login

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