Jump to content

UI bugs when displaying windows based on main window UI position


borbs727

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):

Capture.JPG

Example for problem 2):

Capture2.JPG

Edited by borbs727
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...