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

OSX: QMenu cut corners are calculated wrong

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.0.2
    • 5.0.0, 5.0.1
    • None
    • Qt 5.0.0, Qt 5.0.1, OSX 10.8.2
    • macOS
    • 083c8ce840216ab412bd8d20d5f61a7e24a6d615

    Description

      QMenu on Mac is painted wrong (valid at least for popup menus). Top left corner edge is calculated with error. The more elements are placed in menu, the more corner angle differs from 45 degrees.
      Seems that menu widgets aspect ratio is taken to calculate corner line position, that is obviously wrong.

      See attached screenshot. Made with Qt example mainwindows -> menus, added more actions into menu in MainWindow::contextMenuEvent()

      Attachments

        1. QMenu_bug.png
          QMenu_bug.png
          35 kB
        2. QMenu_bug2.png
          QMenu_bug2.png
          45 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            dedietri Gabriel de Dietrich (drgvond)
            sergei.nevdakh Sergei Nevdakh
            Votes:
            6 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes