[Qt-wince-interest] [Qtce-preview-feedback] Sub-menus stop displaying

George H. Locktish ghlocktish at praxiseng.com
Thu Jun 26 15:17:55 CEST 2008


I have attempted to repair the menu when the bug appears and what I have
noticed is that this appears to fix the issue.  I added a QAction and
then immediately removed the QAction from the menu.  This test was with
Qt 4.4.0 on WM5.

Best regards,
George

-----Original Message-----
From: qtce-preview-feedback-bounces at trolltech.com
[mailto:qtce-preview-feedback-bounces at trolltech.com] On Behalf Of Thomas
Hartmann
Sent: Thursday, May 22, 2008 7:42 AM
To: qtce-preview-feedback at trolltech.com
Subject: Re: [Qtce-preview-feedback] Sub-menus stop displaying

Hi,

thank you for your feedback.

I am investigating the issue. We observed the bug ourselves for a (very)

few times. What I fear is that the bug is not in Qt, but in Windows 
Mobile itself and is triggered by the way we wrap the win 32 API into 
our Qt API. Actually once the menu is created (And while no changes are 
done.) we do nothing to the menu besides calling DrawMenuBar() and 
handling the WM_COMMAND messages from Windows.
I will try to reproduce the bug properly/reliable and investigate it. 
Hopefully there is a proper way to circumvent this bug.

Some questions:
Are you doing anything to the menus when/while the bug appears 
(disabling/enabling, checking/unchecking, adding/removing of sub-menus),

or does the menu remain completely static?
Do you have any chance to try to reproduce the bug on Windows Mobile 6?
Did you try whether modifying the menu (Adding an item.) "repairs"the 
status?


Best Regards,
Thomas Hartmann

George H. Locktish wrote:
>
> I have noticed that sometimes sub-menus for my application stop 
> displaying. I am using Qt on Windows Mobile 5.0 and I have an 
> application that has 4 top-level menu items, and each top-level menu 
> item has a sub-menu. All of the menus normally display properly; 
> however at times some of the sub-menus will stop displaying. Normally,

> when this occurs the other top-level menu items and their sub-menu 
> items still function. The only way that I have found to recover from 
> this situation is to stop the process and to restart the application.
>
> This seems to happen most often when the software is pretty busy (for 
> example, the application may be in the process of painting and/or 
> responding to updates we have made to our item models).
>
> Unfortunately, I don't have a reliable way to reproduce this issue; 
> however, it does happen with some regularity.
>
> - George
>
>
------------------------------------------------------------------------
>
> _______________________________________________
> Qtce-preview-feedback mailing list
> Qtce-preview-feedback at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qtce-preview-feedback
>   

_______________________________________________
Qtce-preview-feedback mailing list
Qtce-preview-feedback at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qtce-preview-feedback




More information about the Qt-wince-interest mailing list