[Qt-interest] menu bar.
Shabd Swarup V
shabd at cadence.com
Fri Mar 27 04:21:51 CET 2009
It's not working on Windows as well. Actually QLayout::setMenuBar(...)
tries to add the menu bar to the parentWidget, which in my case is not a
QMainWindow. In case the parent widget is a QMainWindow, it is able to
add the menu bar quite nicely.
Thanks,
Shabd
-----Original Message-----
From: qt-interest-bounces at trolltech.com
[mailto:qt-interest-bounces at trolltech.com] On Behalf Of Nathan Carter
Sent: Friday, March 27, 2009 2:36 AM
To: qt-interest at trolltech.com List
Subject: Re: [Qt-interest] menu bar.
I do not think that this will work on OS X, which handles menus
differently. See http://doc.trolltech.com/4.5/qmenubar.html and
scroll down to the section on Mac.
Nathan
On Mar 26, 2009, at 4:30 PM, Malyushytsky, Alex wrote:
> I've never tried it.
>
> But according to my impression it can be used with any widget.
> More of that, any widget can be placed in the menu area instead of
> QMenuBar.
> You just need to have a layout set.
>
> Look at void QLayout::setMenuBar ( QWidget * widget ).
>
> Regards,
> Alex
> ________________________________________
> From: qt-interest-bounces at trolltech.com
[mailto:qt-interest-bounces at trolltech.com
> ] On Behalf Of Shabd Swarup V
> Sent: Thursday, March 26, 2009 5:58 AM
> To: qt-interest at trolltech.com
> Subject: [Qt-interest] menu bar.
>
> Can a QMenuBar be inserted in any window other than a QMainWindow?
>
> Thanks,
> Shabd
>
>
>
------------------------------------------------------------------------
---------------------------
> Weidlinger Associates, Inc. made the following annotations.
>
> "This message and any attachments are solely for the intended
> recipient and may contain confidential or privileged information. If
> you are not the intended recipient, any disclosure, copying, use, or
> distribution of the information included in this message and any
> attachments is prohibited. If you have received this communication
> in error, please notify us by reply e-mail and immediately and
> permanently delete this message and any attachments. Thank you."
>
> "Please consider our environment before printing this email."
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest
More information about the Qt-interest-old
mailing list