[Qt-interest] [qt-4] [wince] QMenu integrated into native menu bar
Dmitry Teslenko
dteslenko at gmail.com
Fri May 29 15:22:17 CEST 2009
Hello!
Documentation states that QMenu integrated into native menu bar has
some pecularities: it can't emit some signals, aboutToShow(), for
example.
I've stuck with another limitation: you can't dynamically update QMenu
(when you doing something like recent files). Old items don't
dissappear from menu
and newly added don't appear.
I've made some workaround: I don't delete/insert new QActions; but
change old ones with setData and setText.
Data defines behavior text defines menu item caption. setData works
but setText doesn't.
Who knows: is there way to change menu item caption?
--
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
More information about the Qt-interest-old
mailing list