(In Houdini 19.0.x)
I am working on a Python Panel for an HDA and would like to embed parms from an underlying node. That's trivial using hou.qt.ParmDialog. No problem.
But, once added to my QLayout (in this case a QVBoxLayout), if a second widget is added after the ParmDialog, I run into problems with the sizing of the ParmDialog. Adjusting the ParmDialog's SizePolicy does not seem to have the expected effect: the default policy seems to be QSizePolicy.Minimum (or at least it behaves that way). Switching it to QSizePolicy.Expanding causes the ParmDialog to expand to 50% of the layout. Setting the second widget's SizePolicy to Expanding has no effect.
The net result is that my ParmDialog either appears truncated (but with a scroll wheel), or contains a ton of empty space between the end of the parmlist and the next QWidget. I can't seem to get the ParmDialog to actually adjust itself to an appropriate size for its parms.
I realize it's a bit arcane, but if anyone else has run into this before has a solution, lemme know!
QSizePolicy weirdness with hou.qt.ParmDialog?
847 0 1-
- Tim Crowson
- Member
- 251 posts
- Joined: Oct. 2014
- Offline
-
- Quick Links
