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

Context menu doesn't show submenu statustip properly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • Some future release
    • 4.6.0, 5.5.0
    • None
    • MS Windows XP SP2, Visual Studio 2008

    Description

      When creating context menus having submenus, selecting sumbenu items of a menu shows statustips of a previously selected non-submenu menu item, not the hovered item.
      Screenshot of the QT example E:\QT\4.6.0\examples\mainwindows\menus with slightly modified function contextMenuEvent (one line added) illustrates the problem.
      Modified function:
      void MainWindow::contextMenuEvent(QContextMenuEvent *event)

      { QMenu menu(this); menu.addAction(cutAct); menu.addAction(copyAct); menu.addAction(pasteAct); menu.addMenu(formatMenu); // The added line menu.exec(event->globalPos()); }

      Attachments

        1. screenshot.pdf
          151 kB
        2. screenshot1.pdf
          109 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            alexex Letov Alexey
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes