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

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

XMLWordPrintable

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

      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?

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes