[Qt-interest] Need to show a menu item with disabled look but functional
Esben Mose Hansen
kde at mosehansen.dk
Thu Oct 22 11:36:03 CEST 2009
On Wednesday 21 October 2009 08:37:24 livubuntu at lalescu.ro wrote:
> I would like to present to the user of my software a menu, with a few
> actions disabled. But I want that if the user presses these disabled
> actions, he gets a message box to say that they must be enabled from
> the settings.
>
> So, I want an enabled action, but with disabled look. Is that possible?
>
As others have indicated, this is a probably a bad solution. Instead, leave
the actions enabled, and have a confirm box (with a "don't show this dialog
again").
Alternatively, make it a "tip of the day" entry that there are extra options
that can be enabled.
Alternatively, make the actions undoable. (my favorite)
--
kind regards, Esben
More information about the Qt-interest-old
mailing list