Qt-interest Archive, June 2007
QMdiSubWindow window button sizes
Message 1 in thread
Hi all,
I've been using the Qt 4.3 beta on Windows XP, and working on an application
with an MDI interface using the QMdiArea and QMdiSubWindow classes. I notice
that the window control buttons (Minimize, Maximize, Close) drawn on the
frame of the QMdiSubWindows are a tad smaller than those drawn on my
application's main window, which are consistent with the way any other
application looks on my system.
A couple of screenshots so you can see the discrepancy:
http://es.doomland.net/misc/regular_buttons.png
http://es.doomland.net/misc/mdi_buttons.png
I'd really like to have the MDI sub-windows drawn with regular sized window
control buttons, so my application could be consistent with the way other
programs look - but try as I might, I've not found anything in the Qt class
library documentation that's instructive on how to get this to happen. Nor
have I seen anything on qtforum.org or the qt-interest mailing list archives
addressing the issue; could anyone help point out what I'm missing here?
Thanks,
Evan DeMond
Message 2 in thread
Every app I have used MDI'esq sub windows, the buttons on the inner
windows (or in the main windows menu bar) are always smaller.
However, if you want to change them out, an easy way to do so, would be
to create a very simple style, determine which widgets need style
changes, and change out the painting method.
Scott
________________________________
From: Evan DeMond [mailto:evan.demond@xxxxxxxxx]
Sent: Friday, June 01, 2007 9:48 AM
To: qt-interest@xxxxxxxxxxxxx
Subject: QMdiSubWindow window button sizes
Hi all,
I've been using the Qt 4.3 beta on Windows XP, and working on an
application with an MDI interface using the QMdiArea and QMdiSubWindow
classes. I notice that the window control buttons (Minimize, Maximize,
Close) drawn on the frame of the QMdiSubWindows are a tad smaller than
those drawn on my application's main window, which are consistent with
the way any other application looks on my system.
A couple of screenshots so you can see the discrepancy:
http://es.doomland.net/misc/regular_buttons.png
http://es.doomland.net/misc/mdi_buttons.png
I'd really like to have the MDI sub-windows drawn with regular sized
window control buttons, so my application could be consistent with the
way other programs look - but try as I might, I've not found anything in
the Qt class library documentation that's instructive on how to get this
to happen. Nor have I seen anything on qtforum.org or the qt-interest
mailing list archives addressing the issue; could anyone help point out
what I'm missing here?
Thanks,
Evan DeMond
Message 3 in thread
Hi Scott,
> Every app I have used MDI’esq sub windows, the buttons on the inner
> windows (or in the main windows menu bar) are always smaller.
The buttons you see in the menu bar when the sub-window is maximized are
styleable in 4.3, so with QWindowsStyle they should look like native
"mdi buttons" on Windows.
--
[ signature omitted ]
Message 4 in thread
Hi Evan,
> I've been using the Qt 4.3 beta on Windows XP, and working on an
> application with an MDI interface using the QMdiArea and QMdiSubWindow
> classes. I notice that the window control buttons (Minimize, Maximize,
> Close) drawn on the frame of the QMdiSubWindows are a tad smaller than
> those drawn on my application's main window, which are consistent with
> the way any other application looks on my system.
>
> A couple of screenshots so you can see the discrepancy:
>
> http://es.doomland.net/misc/regular_buttons.png
> http://es.doomland.net/misc/mdi_buttons.png
>
> I'd really like to have the MDI sub-windows drawn with regular sized
> window control buttons, so my application could be consistent with the
> way other programs look - but try as I might, I've not found anything in
> the Qt class library documentation that's instructive on how to get this
> to happen. Nor have I seen anything on qtforum.org <http://qtforum.org>
> or the qt-interest mailing list archives addressing the issue; could
> anyone help point out what I'm missing here?
This looks like a bug in QWindowsStyle. Ideally it should use the same
pixel metric as native windows.
Thanks for the report,
--
[ signature omitted ]