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

QMenu::addAction docs not clear on ownership of returned QAction

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • None
    • 4.7.4, 4.8.0, 4.8.2, Some future release
    • Documentation
    • None
    • 46608f98c65fb27e18458e10f015338f352223d9

    Description

      The documentation of the QMenu::addAction() that actually create a new QAction and return this action, is not clear on who the owner of the returned QAction is. An inspection of the source code of QMenu shows that the action is created with the QMenu as the parent, so it is not needed to explicitly keep track and delete the QAction. However, this is not relflected in the documentation. I think it should be.

      Attachments

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

        Activity

          People

            dm Geir Vattekar
            andre André Somers
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes