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 set QT application on top in Linux OS?
Forum Updated to NodeBB v4.3 + New Features

How to set QT application on top in Linux OS?

Scheduled Pinned Locked Moved Unsolved General and Desktop
qt applicatioset startupset applicationon top
3 Posts 3 Posters 376 Views 1 Watching
  • 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.
  • M Offline
    M Offline
    Mijaz
    wrote on 30 Apr 2021, 05:23 last edited by
    #1

    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?

    1 Reply Last reply
    0
    • N Offline
      N Offline
      nagesh
      wrote on 30 Apr 2021, 09:47 last edited by
      #2

      @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.html

      Windowflags are listed here
      https://doc.qt.io/qt-5/qt.html#WindowType-enum

      looks like need to set both the flags
      Qt::WindowStaysOnTopHint and Qt::X11BypassWindowManagerHint

      1 Reply Last reply
      0
      • S Offline
        S Offline
        SGaist
        Lifetime Qt Champion
        wrote on 30 Apr 2021, 19:11 last edited by
        #3

        Hi,

        How do you start your application ?

        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
        0

        1/3

        30 Apr 2021, 05:23

        • Login

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