[Qt-interest] [possible-spam:3.641]Re: Multiline QMenu
Malyushytsky, Alex
alex at wai.com
Tue Oct 13 23:13:51 CEST 2009
If is possible to use QWidgetAction and achieve multiline effect.
A widget with few text labels in the layout for example.
Not sure I like the multiline menu idea in general though.
Regards Alex.
-----Original Message-----
From: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] On Behalf Of Constantin Makshin
Sent: Tuesday, October 13, 2009 1:24 PM
To: Qt Interest
Subject: Re: [Qt-interest] [possible-spam:3.641]Re: Multiline QMenu
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
_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest
---------------------------------------------------------------------------------------------------
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.”
More information about the Qt-interest-old
mailing list