[Qt-interest] How to hide a QPushButtons menu indicator

Chandru... sekarwagmare at gmail.com
Thu Jul 16 12:38:46 CEST 2009


i finally find the program snippet . how i implement

 dialog->setStyleSheet("QPushButton::menu-indicator{ image: url(none.jpg);
}");

where none.jpg is null

On Thu, Jul 16, 2009 at 3:21 PM, Chandru... <sekarwagmare at gmail.com> wrote:

>
> override the image to none.png
> On Thu, Jul 16, 2009 at 3:20 PM, Chandru... <sekarwagmare at gmail.com>wrote:
>
>> take a look on
>>
>> Qt Style Sheets Examples
>>
>> Customizing the QPushButton's Menu Indicator Sub-Control
>>
>>
>> On Thu, Jul 16, 2009 at 2:54 PM, Oliver Demetz <
>> forenbeitraege at oliverdemetz.de> wrote:
>>
>>> Hi all,
>>> I already posed this question a week ago,
>>> but unfortunately got no reply.
>>>
>>> I've got a QPushButton with associated menu:
>>>
>>>   QPushButton b ("Foobar");
>>>   b.setMenu(new QMenu());
>>>
>>> As soon as I set the menu, besides the button's
>>> text, this *menu indicator is shown*.
>>>
>>> *How can I hide this menu indicator?*
>>>
>>> I read the docs about stylesheets up and down,
>>> but nothing worked.
>>>
>>> Thanks in advance,
>>> Oliver
>>> _______________________________________________
>>> Qt-interest mailing list
>>> Qt-interest at trolltech.com
>>> http://lists.trolltech.com/mailman/listinfo/qt-interest
>>>
>>
>>
>>
>> --
>> WAGMARE
>>
>>
>>
>
>
> --
> WAGMARE
>
>
>


-- 
WAGMARE
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090716/00c1bd74/attachment.html 


More information about the Qt-interest-old mailing list