Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 2

Qt-interest Archive, April 2007
Window title and frame size


Message 1 in thread

Hi all,

how can I find out the height of the title bar and the thickness of the
frame border around an MDI window in Qt (4.2)?

Thanks,
qM

--
 [ signature omitted ] 

Message 2 in thread

QMartin wrote:
> Hi all,
> 
> how can I find out the height of the title bar and the thickness of the
> frame border around an MDI window in Qt (4.2)?

Hi,

the title bar height is PM_TitleBarHeight +4 pixels if not 
SH_TitleBar_NoBorder is set. The frame width is PM_MDIFrameWidth.


-- 
 [ signature omitted ] 

Message 3 in thread

Bjoern Erik Nilsen schrieb:
> QMartin wrote:
>> Hi all,
>>
>> how can I find out the height of the title bar and the thickness of the
>> frame border around an MDI window in Qt (4.2)?
> 
> Hi,
> 
> the title bar height is PM_TitleBarHeight +4 pixels if not
> SH_TitleBar_NoBorder is set. The frame width is PM_MDIFrameWidth.

That's what I was looking for, thanks a lot.

Another question though: I assume PM_MDIFrameWidth specifies the width
of *one* frame border, and since a window has left a border and a right
a border, I'll have to double this value, right? And: does the "+4" part
come from the frame border on the lower side of the window?

Thanks!
M

--
 [ signature omitted ]