Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved How to set QT application on top in Linux OS?

    General and Desktop
    qt applicatio set startup set application on top
    3
    3
    94
    Loading More Posts
    • 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.
    • Mijaz
      Mijaz last edited by

      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 Reply Quote 0
      • nagesh
        nagesh last edited by

        @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 Reply Quote 0
        • SGaist
          SGaist Lifetime Qt Champion last edited by

          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 Reply Quote 0
          • First post
            Last post