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. QFileDialog objects appear behind main window when called for the second time onwards on Unity in Ubuntu 14.04

QFileDialog objects appear behind main window when called for the second time onwards on Unity in Ubuntu 14.04

Scheduled Pinned Locked Moved General and Desktop
ubuntu 14.04unityqfiledialog
3 Posts 2 Posters 1.4k Views
  • 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.
  • K Offline
    K Offline
    kzarog
    wrote on 28 Aug 2015, 16:05 last edited by kzarog
    #1

    Hello,

    I am having this strange behaviour, in which QFileDialog objects appear behind the main window when invoked for the second time in the stock Unity that came with Ubuntu 14.04. The objects all have parent objects.

    I am running the 64-bit version of the OS. This issue does not arise in Windows 10 or in Gnome.

    Any hints/pointers on how to resolve this?

    Thank you very much!

    E 1 Reply Last reply 1 Sept 2015, 23:20
    0
    • K kzarog
      28 Aug 2015, 16:05

      Hello,

      I am having this strange behaviour, in which QFileDialog objects appear behind the main window when invoked for the second time in the stock Unity that came with Ubuntu 14.04. The objects all have parent objects.

      I am running the 64-bit version of the OS. This issue does not arise in Windows 10 or in Gnome.

      Any hints/pointers on how to resolve this?

      Thank you very much!

      E Offline
      E Offline
      Eyeless
      wrote on 1 Sept 2015, 23:20 last edited by
      #2

      @kzarog Hello,

      Please, post source code of opening file dialog in your program, this may help to find a solution.

      1 Reply Last reply
      0
      • K Offline
        K Offline
        kzarog
        wrote on 21 Oct 2015, 10:40 last edited by
        #3

        @Eyeless really sorry for the late reply! Just realised you have replied to me. After some testing I have solidified the conclusion that it is not a Qt problem, as was expected. As such, there is no reason to post my trivial dialog code.

        I am writing this for posterity's sake.

        This issue is caused due to the focus stealing prevention mechanism by Unity. The user could change Unity's default behaviour by issuing in a terminal the command:

        dconf write /org/compiz/profiles/unity/plugins/core/focus-prevention-level 0

        This will allow for the consequent dialogs to appear in front of their parents, as expected.

        1 Reply Last reply
        0

        • Login

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