garf Posted November 12, 2022 Share Posted November 12, 2022 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? Quote Link to comment Share on other sites More sharing options...
garf Posted June 12, 2023 Author Share Posted June 12, 2023 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() Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.