I poked a bit at menus in the new JQT and J901.
The Menu QT demo had some interesting behaviour:
1. Most of the menu selections did not get displayed by wdhandler_debug_z_=: 3
: 'smoutput wdq'
2. Edit->Configure->Base and Edit->Configure->Launchpad did trigger:
┌────────────┬────────────────┐
│syshandler │test_handler │
├────────────┼────────────────┤
│sysevent │test_base_button│
├────────────┼────────────────┤
│sysdefault │test_default │
├────────────┼────────────────┤
│sysparent │test │
├────────────┼────────────────┤
│syschild │base │
├────────────┼────────────────┤
│systype │button │
├────────────┼────────────────┤
│syslocalec │ │
├────────────┼────────────────┤
│syslocalep │qtdemo │
├────────────┼────────────────┤
│syshwndp │1615967131168 │
├────────────┼────────────────┤
│syshwndc │1615963384448 │
├────────────┼────────────────┤
│syslastfocus│list │
├────────────┼────────────────┤
│sysfocus │list │
├────────────┼────────────────┤
│sysmodifiers│0 │
├────────────┼────────────────┤
│sysdata │ │
├────────────┼────────────────┤
│list │three │
├────────────┼────────────────┤
│list_select │2 │
└────────────┴────────────────┘
3. I changed File->Quit to File->Quitter->Quit and now it triggered:
┌────────────┬────────────────────┐
│syshandler │test_handler │
├────────────┼────────────────────┤
│sysevent │test_demoquit_button│
├────────────┼────────────────────┤
│sysdefault │test_default │
├────────────┼────────────────────┤
│sysparent │test │
├────────────┼────────────────────┤
│syschild │demoquit │
├────────────┼────────────────────┤
│systype │button │
├────────────┼────────────────────┤
│syslocalec │ │
├────────────┼────────────────────┤
│syslocalep │qtdemo │
├────────────┼────────────────────┤
│syshwndp │1615967131168 │
├────────────┼────────────────────┤
│syshwndc │1615963384448 │
├────────────┼────────────────────┤
│syslastfocus│list │
├────────────┼────────────────────┤
│sysfocus │list │
├────────────┼────────────────────┤
│sysmodifiers│0 │
├────────────┼────────────────────┤
│sysdata │ │
├────────────┼────────────────────┤
│list │three │
├────────────┼────────────────────┤
│list_select │2 │
└────────────┴────────────────────┘
4. Ctrl+Q still did nothing.
5. If I selected File to display the File submenu and hit Ctrl-Q, Ctrl+Q worked:
┌────────────┬───────────────┐
│syshandler │test_handler │
├────────────┼───────────────┤
│sysevent │test_qctrl_fkey│
├────────────┼───────────────┤
│sysdefault │test_default │
├────────────┼───────────────┤
│sysparent │test │
├────────────┼───────────────┤
│syschild │qctrl │
├────────────┼───────────────┤
│systype │fkey │
├────────────┼───────────────┤
│syslocalec │ │
├────────────┼───────────────┤
│syslocalep │qtdemo │
├────────────┼───────────────┤
│syshwndp │1615967131168 │
├────────────┼───────────────┤
│syshwndc │1615963384448 │
├────────────┼───────────────┤
│syslastfocus│list │
├────────────┼───────────────┤
│sysfocus │list │
├────────────┼───────────────┤
│sysmodifiers│0 │
├────────────┼───────────────┤
│sysdata │ │
├────────────┼───────────────┤
│list │three │
├────────────┼───────────────┤
│list_select │2 │
└────────────┴───────────────┘
I'll see if I can see how that links in with wd and the new qt.
Cheers,
David Mitchell
On 4/12/2019 16:41, chris burke wrote:
I don't understand this at all.
The problem is that wd form menu events are not being triggered in Qt
5.12.2. The same source built in Qt 5.9.6 works fine. Menu events other
than wd also work fine.
I thought this might have something to do with the new signal/slot
mechanism in Qt 5, but even after changing to that, there is the same
behavior. Otherwise there have been no changes to the form menu code for
some time.
Something must have changed in Qt, but what?
On Fri, Apr 12, 2019 at 6:46 AM Don Guinn <[email protected]> wrote:
I noticed the same thing but I thought it was something I did. Run the QT
demo "menu". Pressing the menu selections do not cause an event, except
those in Edit/Configure. Base and Launch Pad do cause events.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm