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 make a toplevel window on android ?
QtWS25 Last Chance

how to make a toplevel window on android ?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
androidc++
7 Posts 3 Posters 930 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
    tataeress
    wrote on last edited by tataeress
    #1

    Hi,
    is there a way to make a toplevel window android app like how the Qt::Popup flag works on windows?
    i want to make an app run on top of every app on android which displays like when you set in the developers options of your smartphone the second screen
    the thing works for windows very well but i still didn't figured how to make it on android

    jsulmJ 1 Reply Last reply
    0
    • T tataeress

      Hi,
      is there a way to make a toplevel window android app like how the Qt::Popup flag works on windows?
      i want to make an app run on top of every app on android which displays like when you set in the developers options of your smartphone the second screen
      the thing works for windows very well but i still didn't figured how to make it on android

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @tataeress I really doubt a normal app can do such things on mobile systems.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • T Offline
        T Offline
        tataeress
        wrote on last edited by tataeress
        #3

        maybe can it be made as an activity or service? ( sry i don't have a good knowledge toward android )
        cause since that second screen developer option can do it, it should be possible somehow

        jsulmJ 1 Reply Last reply
        0
        • T tataeress

          maybe can it be made as an activity or service? ( sry i don't have a good knowledge toward android )
          cause since that second screen developer option can do it, it should be possible somehow

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @tataeress said in how to make a toplevel window on android ?:

          cause i since that second screen developer option can do it, it should be possible somehow

          This is for developer screen which is not for normal applications. I never saw a mobile app doing something like this, so I doubt it is possible (and it is actually good that it is not possible). Why do you need something like this? Personally I would not use such an app.

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • T Offline
            T Offline
            tataeress
            wrote on last edited by tataeress
            #5

            simply, because the app will loses it's concept without it.
            also, i think since messenger for example can popup a bubble that moves and that let's you touch whats in the background normally it should be possible to make it

            1 Reply Last reply
            0
            • J.HilkJ Offline
              J.HilkJ Offline
              J.Hilk
              Moderators
              wrote on last edited by
              #6

              AFAIK Android as no concept about a top level window, as it is lacking a proper window manager system. At least one like you would have on a proper Desktop System

              Your activity is technically a Window, but its always fullscreen


              Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


              Q: What's that?
              A: It's blue light.
              Q: What does it do?
              A: It turns blue.

              1 Reply Last reply
              0
              • T Offline
                T Offline
                tataeress
                wrote on last edited by tataeress
                #7

                it seems that i can achieve this through what android developpers call system_overlay
                i still don't know if i can do it with c++
                i found that something like this may exist for QML
                https://doc.qt.io/qt-5/qml-qtquick-controls2-overlay.html?fbclid=IwAR3aAt6Lj6nVc5drVgLxk9tJ8-jXQS--ZOy2aPsnjoxvqA3L84SfImhVmtM#details

                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