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

Context menu opens further away from the cursor the further the mouse is clicked from the top-left edge of the window

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.11.0 Beta 1
    • 5.8
    • Quick: Controls 2
    • None
    • Ubuntu 16.04

    Description

      import QtQuick 2.8
      import QtQuick.Window 2.2
      import Qt.labs.platform 1.0
      
      Window {
          id: window
          width: 400
          height: 400
          visible: true
      
          TextEdit {
              id: editor
              anchors.fill: parent
      
              MouseArea {
                  anchors.fill: parent
                  acceptedButtons: Qt.RightButton
                  onClicked: contextMenu.open()
              }
      
              Menu {
                  id: contextMenu
      
                  MenuItem {
                      text: qsTr("Copy")
                  }
                  MenuItem {
                      text: qsTr("Cut")
                  }
                  MenuItem {
                      text: qsTr("Paste")
                  }
              }
          }
      }
      

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            mitch_curtis Mitch Curtis
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: