[Qtce-preview-feedback] QMenuBar setdefaultaction compiler error

Matthias Van Woensel matthias at fotodegroot.be
Fri Apr 25 11:11:37 CEST 2008


Hi,

Extract from the documentation:
void QMenuBar::setDefaultAction ( QAction * act )
Sets the default action to act.
The default action is assigned to the left soft key. The menu is assigned to
the right soft key.
Currently there is only support for the default action on Windows Mobile.
All other platforms ignore the default action.
See also defaultAction().

Having developed an application that runs on both wince and linux platforms
and uses the DefaultAction to set an action on the left softkey we were
confronted with a compiler error when compiling on linux: "class 'QMenuBar'
has no member named 'setDefaultAction'". We worked around the problem
temporarily by adding an #IFDEF Q_OS_WINCE but we believe a definite fix is
needed.
It is also possible that QAction * QMenuBar::defaultAction () suffers from
the same compiler error (untested).

Kind Regards
Matthias
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.trolltech.com/pipermail/qtce-preview-feedback/attachments/20080425/31d78a6f/attachment.html 


More information about the Qtce-preview-feedback mailing list