Qt-jambi-interest Archive, May 2007
fullscreen and macosx
Message 1 in thread
Hello,
I found that the method QWidget.showFullScreen seems to behave differently
between Windows and MacOsX.
On Windows, the QMenuBar remains on top of the fullscreen window.
On Os X, it plainly disappears.
Is there a workaround ?
thanks,
Bruno
Message 2 in thread
Bruno Janvier wrote:
> Hello,
>
> I found that the method QWidget.showFullScreen seems to behave
> differently between Windows and MacOsX.
> On Windows, the QMenuBar remains on top of the fullscreen window.
> On Os X, it plainly disappears.
>
> Is there a workaround ?
Hi Bruno,
In general, I wouldn't call showFullScreen on widget with a menubar as
the behaviour of the menu bar is platform dependent, or rather window
system dependent. On Windows, the menubar is part of the widget so it
follows that the menubar is part of the widget when its shown
fullscreen. On Mac OS X, the menubar is part of the window systems title
bar and thus, not show when the widget is shown full screen.
What I would do instead, is to make the content widget toplevel and show
that one fullscreen. That would leave out the menubar on both mac os x
and windows. If you want the menubar for both cases, I'd probably go
with showMaximized instead.
-
best regards,
Gunnar
Message 3 in thread
Gunnar Sletta a écrit :
> Bruno Janvier wrote:
>> Hello,
>>
>> I found that the method QWidget.showFullScreen seems to behave
>> differently between Windows and MacOsX.
>> On Windows, the QMenuBar remains on top of the fullscreen window.
>> On Os X, it plainly disappears.
>>
>> Is there a workaround ?
>
> Hi Bruno,
>
> In general, I wouldn't call showFullScreen on widget with a menubar as
> the behaviour of the menu bar is platform dependent, or rather window
> system dependent. On Windows, the menubar is part of the widget so it
> follows that the menubar is part of the widget when its shown
> fullscreen. On Mac OS X, the menubar is part of the window systems
> title bar and thus, not show when the widget is shown full screen.
>
> What I would do instead, is to make the content widget toplevel and
> show that one fullscreen. That would leave out the menubar on both mac
> os x and windows. If you want the menubar for both cases, I'd probably
> go with showMaximized instead.
>
> -
> best regards,
> Gunnar
>
Thanks Gunnar for the clear explanation.