Qt Forum

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

    Forum Updated on Feb 6th

    Unsolved Keeping child windows ontop on Linux (ubuntu/xubuntu/rhel)

    General and Desktop
    2
    2
    128
    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.
    • S
      StephenSmith25 last edited by

      Hello,

      I am developer working on a cross-platform data analysis software package. We are currently having issues generating consistent window behaviour across each platform. Specifically, we have a single mainwindow (QMainWindow) instance (the main application window) and several child windows (QWidgets) which we'd like to stay on-top of this main window. For each child window, we'd like the following behaviour to be satisfied:

      (1) Keep the child window on-top of the parent mainwindow
      (2) Preserve the minimize and maximise button
      (3) Lower the window when a new window (outside of the application) is placed on-top

      To achieve this on Windows we utilise a parent-child relation. On Linux and OSX we also utilise this relationship, as well as setting the Qt.Tool flag for each child window. However, on Linux, by setting this Qt.Tool flag we lose the ability to minimize the window and therefore we've been investigating alternatives. Recently, we've been looking at the Qt.WindowStaysOnTopHint, which satisfies requirements (1) and (2) - however, the window remains on-top of everything (including other applications), which fails requirements 3.

      At the moment, we feel like we've exhausted every possible solution and we are at a loss with it. My question is can we achieve all three of these behaviours on our Linux platforms?

      Qt version 5.11.3

      Thank you in advance,

      Stephen

      1 Reply Last reply Reply Quote 0
      • T
        tonytony last edited by

        I run into the same issue as this one. @StephenSmith25 Do we already have a bug to track this?

        1 Reply Last reply Reply Quote 0
        • First post
          Last post