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

QML Menu documentation is not mentioning default value of focus property

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.13
    • 5.12.3
    • Documentation
    • None
    • 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

        For Gerrit Dashboard: QTBUG-75546
        # Subject Branch Project Status CR V

        Activity

          People

            vertries Nico Vertriest (Inactive)
            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