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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • P2: Important
    • Resolution: Done
    • 5.9.1
    • 5.9.2
    • GUI: Painting
    • None
    • win10

      qt 5.9.1 (MinGW, MSVC2015)

       
    • 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

        1. ContextMenuUnderWindow.7z
          1 kB
          Sergey Moskalenko
        2. ContextMenuUnderWindow.png
          156 kB
          Sergey Moskalenko
        3. qtbug62004.zip
          1 kB
          Friedemann Kleint

        Issue Links

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

          Activity

            People

              kleint Friedemann Kleint
              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