<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div><br></div><div>Greetings All,</div><div><br></div><div>Doing some prototyping where I have a simple QTreeWidget with 3 items.</div><div>Each item has 3 simple children.</div><div><br></div><div>Using QTreeWidget.setItemWidget()....I "set/insert" a simple QTableWidget into</div><div>a child of one of the tree's parent items (first column)<br></div><div><br></div><div>The problem is that the "child-table" width is wider than the "parent-tree"'s first column,</div><div>so that parent-tree->column2 clips the child-table.</div><div><br></div><div>This phenomena is pretty much identical to this example on stackoverflow  (last pix)<br></div><div><br></div><div><a
 href="http://stackoverflow.com/questions/6133367/qtreewidget-with-multiple-columns-limits-number-of-child-items">http://stackoverflow.com/questions/6133367/qtreewidget-with-multiple-columns-limits-number-of-child-items</a></div><div><br></div><div>However, in that example, the problem is "solved" by manually (or could be automatic) resizing of</div><div>the parent columns by simply pulling it wider,etc..</div><div><br></div><div>But in my prototype, I need the entire "child-table" to display in it's entirety but I need the columns</div><div>of the "parent-tree" to remain the same width.</div><div><br></div><div>In other words, I need to override the default behaviour of having the tree define the child's display region.</div><div><br></div><div>I've tried several things...all to no avail...</div><div><br></div><div>I chose to use Tree/Table-Widgets this time, instead of Tree/Table-Views....would the "views" method</div><div>perhaps solve this
 dilemma?</div><div><br></div><div>If there's no way to solve this directly....any thoughts about "constraining" the position of a widget to</div><div>another widget?...bypassing the parent/child relationship in favor of functionality that would "snap"</div><div>a table widget's position to a marker, or anchor on the tree widget?  Sounds crude, I know...but</div><div>trying to figure out any workaround...</div><div><br></div><div>Would doing something like "setItemLayout" (instead of setItemWidget) yield a layout that would</div><div>paint over it's parent?....(albeit I can't seem to find a function like "setItemLayout", lol)</div><div><br></div><div>Any and all suggestions or solutions or workarounds are greatly appreciated..</div><div>Cheers,</div><div>Jim</div><div><br></div><div>(Simple example attached)<br></div></div></body></html>