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

QML Menu documentation is not mentioning default value of focus property

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: 5.12.3
    • Fix Version/s: 5.13
    • Component/s: Documentation
    • Labels:
      None
    • Commits:
      13be1d97bbef699f0ddae589bfd5333d53dbe4ee

      Description

      The QML Menu documentation is not mentioning the default value of the focus property. Menu is derived from Popup and Popup documentation is stating that the default value is set to false.
      Unfortunately the default value is changed for Menu (code snippet below) which in my opinion should somehow be mentioned, otherwise the user thinks the default is inherited from the parent.

      QQuickMenu::QQuickMenu(QObject *parent)
          : QQuickPopup(*(new QQuickMenuPrivate), parent)
      {
          Q_D(QQuickMenu);
          setFocus(true);
          connect(d->contentModel, &QQmlObjectModel::countChanged, this, &QQuickMenu::countChanged);
      }
      

        Attachments

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

          Activity

            People

            Assignee:
            vertries Nico Vertriest (Inactive)
            Reporter:
            henning Henning Gr√ľndl
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes