On 24-Apr-2013, at 12:28 PM, Immanuel Weber wrote:

> Thanks John for the code. It works fine. I'm not really into the qt 
> internals, I don't know if it is enough to overload in QMdiSubWindow size() 
> and resize() to account for your code snippets.

The size() and resize() members aren't virtual, so you will get surprising 
results if you try to override them. My somewhat unsatisfying solution was to 
create new member functions that set the size and position of these "windoids". 
I found it beyond my capability to come up with a foolproof way to force 
everyone to use "correct" code.

Note that .ui files will compile to code that calls size(), setGeometry() and 
such. They may do that through a base-class pointer, frustrating your attempts 
to make them do something different, and making it impossible to simply hide 
those functions with your own implementation.

> Should this be reported as a bug?


Up to you. I haven't been at this Qt thing long enough to know how it would be 
received.

-John Weeks

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to