[Qt-interest] [possible-spam:3.641]Re: Multiline QMenu

Constantin Makshin dinosaur-rus at users.sourceforge.net
Tue Oct 13 22:24:12 CEST 2009


None of built-in Qt styles support multi-line menu items (all of them use  
Qt::TextSingleLine text flag to draw item labels), so there're 3 ways to  
solve your problem:
1) your customer forgets about multi-line menu items;
2) you write your own style and use only it;
3) you modify Qt code and use only modified Qt with your application.

On Tue, 13 Oct 2009 15:46:08 +0400, René Möhring  
<rene.moehring at accellence.de> 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.

-- 
Constantin Makshin



More information about the Qt-interest-old mailing list