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

Context menu was painted under window with Qt::WindowStaysOnTopHint flag.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.9.1
    • Fix Version/s: 5.9.2
    • Component/s: GUI: Painting
    • Labels:
      None
    • Environment:
      win10

      qt 5.9.1 (MinGW, MSVC2015)

       
    • Commits:
      1fc9c8d8f31b3c6587691608550ff41bed765fb9 (qtbase/5.9, 22.8.2017, 5.9.2)

      Description

      Widget with flag Qt::WindowStaysOnTopHint contains QMenu/

      connect(this, &QWidget::customContextMenuRequested, this, &Widget::onCustomContextMenuRequested);

       

      If widget lose focus (select some file or link at Desktop),  then after next call menu will be drawn under widget.

      Mouse move and click at menu still work (even menu under widget), menu just painted under widget.

       

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              kleint Friedemann Kleint
              Reporter:
              sergeymoskalenko Sergey Moskalenko
              Votes:
              4 Vote for this issue
              Watchers:
              12 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes