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

QML Menu documentation is not mentioning default value of focus property

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P3: Somewhat important P3: Somewhat important
    • 5.13
    • 5.12.3
    • Documentation
    • None
    • 13be1d97bbef699f0ddae589bfd5333d53dbe4ee

      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);
      }
      

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes