Jump to content

UI bugs when displaying windows based on main window UI position

Recommended Posts


I'm new to Houdini pipeline and I'm starting to port a Maya pipeline tool over to Houdini.  Everything is working great but the tooltip windows aren't appearing in the right positions.  I've used Paul Winex's MSE and hqt as a reference to see how Houdini is working with windows, if there are any other learning resources out there let me know!

1) The popups are supposed to lock onto the edge of the panel, but it looks like they're offsetting from the left edge of my center monitor (in a 3 monitor setup). No matter where I move the main Houdini window, the popups still appear in the same spots.  

2) There's only 1 UI element that creates a popup correctly, but it gets hidden behind Houdini's main viewport.  Tearing off my tool's panel doesn't resolve any of these problems.

I'm getting the parent window in Houdini like so:

class Build( QtGui.QWidget ):
	'''Main functions to build UI.'''
	def __init__(self, parent = hou.ui.mainQtWindow()):
		super( Build, self ).__init__( parent )

My tool works fine when getting the parent window in Maya like so:

ptr = mui.MQtUtil.mainWindow()

class Build( QtGui.QWidget ):
	'''Main functions to build UI.'''
	def __init__(self, parent = wrapInstance( long( ptr ), QtGui.QWidget )  ):
		super( Build, self ).__init__( parent )

Example for problem 1):


Example for problem 2):


Edited by borbs727

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now