Wouldn't it be safer to ask the widget for its class name? More than one class may have a property called "orientation".
Is the parent of the widget you are trying to move managed by a layout?
Finally, what is the ultimate effect you are trying to achieve? Maybe there is a better approach to reach the goal.






Reply With Quote

Bookmarks