Jump to content

PyQt Window On Top (Linux - CentOS)


garf

Recommended Posts

Has anyone come across this? I have a qt window which I have parented to the houdini session using

setParent(hou.qt.mainWindow(), QtCore.Qt.Window)

and it does as expected on Windows OS. i.e. it always stays on top of the houdini session whilst the Qt UI is open. On a Linux machine running CentOS 7, the window goes behind the Houdini session if you click elsewhere. I have "Keep floating windows on Top" checked on on both windows and Linux systems. I've also added 

setWindowFlags(QtCore.Qt.WindowStaysOnTopHint)

into the code to see if that would work but it doesn't. 

As I said, it works fine on Windows so I guess this is an OS thing. Anyone got any ways around this?

Link to comment
Share on other sites

  • 6 months later...

for future reference the QtCore.Qt.Tool Flag works for this issue

    myDialog = main()
    myDialog.setParent(hou.qt.mainWindow(), QtCore.Qt.Window)
    myDialog.setWindowFlags(QtCore.Qt.Tool)
    myDialog.show()

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...