Context menu partly hidden

Emdek emdeck at gmail.com
Sun May 24 20:48:13 CEST 2009


On 24-05-2009 20:32:00 Marco Martin <notmart at gmail.com> wrote:
> On Sunday 24 May 2009, Emdek wrote:
>> On 24-05-2009 16:22:48 Marco Martin <notmart at gmail.com> wrote:
>> > On 5/20/09, L Pierre <pierrelud at yahoo.com> wrote:
>> >> Hi,
>> >>
>> >> The context menus was as result of a right mouse click on the middle
>> >> box in
>> >> the picture (see attach). I used a class as subclass of
>> >> Plasma::TextEdit -
>> >> "PlasmaTextEdit : public Plasma::TextEdit"
>> >>
>> >> Is there something I can do to prevent this? (see attach)
>> >>
>> >> Does anyone have an idea why this is happening?
>> >
>> > unfortunately yes.
>> > the context menu is embedded into scene as well as the parent widget
>> > and is something we can't do much about it (until there will be some
>> > kind of support in qt to not embed children or -certain- children)
>> > what you can do is to set a pretty high zvalue of the widget that has
>> > the context menu
>>
>> I don't know, but maybe flag that I've found could help (if set for  
>> KMenu):
>> https://bugs.kde.org/show_bug.cgi?id=179541#c8
>
> yeah, indeed,
> but the prolem is that with standard qwidgets you would have to dig in  
> their
> structure, i.e accessing somehow the popup menu of a combobox or a text  
> area
> and set the flag on that, you can iterate trough children of a qobject  
> qut
> well, not sooo pretty :p

Right... So we probably need to wait ages for Qt 4.6...


More information about the Plasma-devel mailing list