Re: [Interest] QMdiSubWindow resize() does include the frame

2013-04-25 Thread Constantin Makshin
I admit that if a widget looks like a top-level window, one would expect to see it working [mostly] as a top-level window. But at the same time I think it's too late to change the current behavior as it may break some existing code (technically QMdiSubWindow-s are just child widgets, the fact that

Re: [Interest] QMdiSubWindow resize() does include the frame

2013-04-25 Thread Immanuel Weber
Well, I do understand that this is technically correct and not a bug in that sense, but I think this is not really convenient. I think the idea of seperating size()/resize() and frameSize() etc. is to conveniently work with widgets which have a frame, title etc. and hence that the use of it should

Re: [Interest] QMdiSubWindow resize() does include the frame

2013-04-24 Thread Constantin Makshin
This is not a bug -- as both John and Qt documentation say, the frame-client area distinction applies only to top-level widgets/windows (quote from the page you gave link to: "Note that the distinction only matters for decorated top-level widgets. For all child widgets, the frame geometry is equal

Re: [Interest] QMdiSubWindow resize() does include the frame

2013-04-24 Thread John Weeks
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 virtua

Re: [Interest] QMdiSubWindow resize() does include the frame

2013-04-24 Thread Immanuel Weber
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. Should this be reported as a bug? Am Mittwoch, 24. April 2013 um 17:49 schrieb John Weeks: > OK- this t

Re: [Interest] QMdiSubWindow resize() does include the frame

2013-04-24 Thread John Weeks
OK- this time I got the correct message sent to the correct address. Sorry about that whole series of mistakes. I gotta say, I really disagree with the general notion that putting the list as the Reply To: is a bad thing... Yep- I got caught by this one, too. The explanation is that a QMdiSub

Re: [Interest] QMdiSubWindow resize() does include the frame

2013-04-24 Thread John Weeks
On 24-Apr-2013, at 2:57 AM, Immanuel Weber wrote: > did you not post that on the mailing list for a reason or just by mistake? Crap. By mistake. I'll re-send it; don't be surprised if you get another copy :) -John ___ Interest mailing list Interest@q

Re: [Interest] QMdiSubWindow resize() does include the frame

2013-04-23 Thread Rutledge Shawn
On 23 Apr 2013, at 10:22 PM, Immanuel Weber wrote: > Hi all, > > I'm trying to set the inner area of a QMdiSubArea to a specific size, but the > the resize(..) member of QMdiSubArea includes the frame. As stated in the > documentation > (http://qt-project.org/doc/qt-5.0/qtwidgets/application-

[Interest] QMdiSubWindow resize() does include the frame

2013-04-23 Thread Immanuel Weber
Hi all, I'm trying to set the inner area of a QMdiSubArea to a specific size, but the the resize(..) member of QMdiSubArea includes the frame. As stated in the documentation ( http://qt-project.org/doc/qt-5.0/qtwidgets/application-windows.html#window-geometry) resize(..) (belonging to size()) sho