[Qt-interest] [possible-spam:3.641]Re: Multiline QMenu
william.crocker at analog.com
william.crocker at analog.com
Tue Oct 13 15:28:38 CEST 2009
René Möhring wrote:
> Constantin Makshin schrieb:
>> May I ask the purpose of multi-line menu items? Also I think that
>> multi-line menu items are somewhat counter-intuitive and may confuse users.
>>
>> On Mon, 12 Oct 2009 15:59:16 +0400, René Möhring
>> <rene.moehring at accellence.de> wrote:
>>> I need a menu that can hold items an submenus that span two lines (have
>>> a linebreak in them). Simply putting a line break into the string does
>>> not help. Do you hav any idea how to to this?. I have attached a sketch
>>> of my idea.
>>>
>>> Thanks
> You may but wont get a good answer. The customer wants it that way. And
> yes your are right, it is strange and counterintuitive. Nevertheless I
> need to do it.
>
I could use this right now.
I have a menu with a number of entries.
They are mostly short in length.
But, one of them needs to be long and it
dictates the width of the menu.
If I could wrap that one item
then the whole menu could be narrower.
If each menu entry has an associated icon and the
wrapped text is centered vertically on that
icon then it would be obvious that
the multiple line are really a single menu entry.
Also, when you hover over it all lines would
be highlighted at once.
Same goes for the QTabWidget.
Last I looked the tabs did not support
multi-line text.
Bill
More information about the Qt-interest-old
mailing list