Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-3411

QWidgetAction::setEnabled( bool ) has no direct effect on widgets created with QWidgetAction::createWidget()

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Cannot Reproduce
    • Not Evaluated
    • Some future release
    • 4.4.3
    • Other
    • None

    Description

      When you call:
      QWidgetAction::setEnabled( bool b )
      It is expect for all widgets in
      QWidgetAction::createdWidgets()
      to take the same enabled state, the same for all subclasses of QWidgetAction.

      Currently this is not the case.

      It just works for subclasses which are aware of the action and react to its
      changes itself, like QToolButton does (via the QActionEvent emitted by
      QAction::setEnabled() and QToolButton::actionEvent()). This should be
      mentioned in the documentation of QWidgetAction.

      It may be useful to change QWidgetAction to just do that and
      sync all created widgets to its enabled state as where would this be unwanted?

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            goffart Olivier Goffart (closed Nokia identity) (Inactive)
            janichol Andy Nichols
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes