[Qt-interest] QMenuBar + add spacer or add a menu at the extreme right sight

Arnold Krille arnold at arnoldarts.de
Sun Apr 26 10:05:53 CEST 2009


Hi,

On Sunday 26 April 2009 01:50:48 Yong Taro wrote:
> is there a way to add a spacer item to QMenuBar
> or add a menu to the QMenuBar at the extreme right sight ?

On the far right side is the help menu on some systems. Depending on the Qt 
style, yours should be there too (automatically).
On some other systems, _all_ menus are on the far right! Because their reading 
order is right-to-left.

Both are points why it is really bad to tinker with the layout of the menubar 
on your own as it will break your app a) in all the right-to-left countries 
and b) in all styles where the help-menu is right.
In short: Stop thinking about it and be glad Qt does the layouting for you:-)

Have fun,

Arnold
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090426/15db102e/attachment.bin 


More information about the Qt-interest-old mailing list