How to set QT application on top in Linux OS?
-
How to set QT application on top in Linux OS?
I have set my application on startup, it boots fine when I start my board. But when HDMI disconnects and connects from LCD my QT Application goes to shutdown automatically. For application, I have to directly open the application through the command ./myApplication &
When I set my application on top manually then it appears again even when HDMI disconnects for a while and connects again. How to set my application always on top at boot? -
@Mijaz There is flag to set the windows on top.
check following example for setting windowflags
https://doc.qt.io/qt-5/qtwidgets-widgets-windowflags-example.htmlWindowflags are listed here
https://doc.qt.io/qt-5/qt.html#WindowType-enumlooks like need to set both the flags
Qt::WindowStaysOnTopHint and Qt::X11BypassWindowManagerHint -
Hi,
How do you start your application ?