[Qt-interest] QActions don't appear in QMenu

Oszkar Ambrus oszkar.ambrus at deri.org
Wed Jul 14 16:47:32 CEST 2010


On 14/07/10 17:33, Constantin Makshin wrote:
> My assumption is that these actions either have empty text/title or are invisible.

I checked that, and they don't have empty text, they are visible and 
enabled.

>
> On Wednesday 14 July 2010 18:13:20 Oszkar Ambrus wrote:
>> Hi,
>>
>> I have this weird problem:
>> I'm trying to add some QActions to a QMenu, but they do not appear in
>> the list.
>>
>> The thing is that I get the actions from another widget (through its
>> actions() method), and when I do that, they don't get displayed.
>>
>> I can query the menu for all the actions and it does contain them, but
>> they just don't get displayed, whereas the ones I newly create, are visible.
>>
>> Is this a parenting issue?
>>
>> Thanks,
>> Oszkar
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>




More information about the Qt-interest-old mailing list