How to put a QMainWindow on the top of the screen in Android?
-
Hi,
I tried two methods to put QMainWindow on the top of the screen as follows, None of them work.
- I'm use Qt::WindowStaysOnTopHint not work in Qt Android. Do you have any good ideas?
- I'm tring to add the java code in onCreate of AppCompatActivity
setContentView(R.layout.dream); - how to use Qt app layout?
Thanks for your help.
Daniel -
@Daniel-Rush It is not clear what you want to achieve. The application is automatically on the top of the screen when you start it. Or do you want the app to always stay on top even if other apps are started. If so I don't think it is possible on mobile platforms.
-
Hi, jsulm,
Thanks for your reply.
Yeap, I want the app to always stay on top.
Because the Android system have a Activate Window always on the top of the screen.
My program app must be in front of the Activate Window. And I must.
I implemented a demo in Android Studio by using TYPE_SYSTEM_ALERT to on the top.
But my full program is implemented using Qt.Need your advice.
Daniel