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

mapToGlobal() does not work correctly when mapping the QMenu object bound to QPushButton after QMainWindow position changed

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P5: Not important
    • None
    • 5.3.2, 5.5.1, 5.6.0 Alpha, 5.6.0 Beta
    • GUI: Look'n'Feel
    • X11 Windows

    Description

      The user wants to use mapToGlobal to position the menu. The user is able to get the correct position only time (after application was started). If the window was moved, mapToGlobal fails to position the menu correctly.

      Steps to reproduce:

      1. Unpack the application attached (it contains screen-shots and instructions.txt file)
      2. Run it
      3. Open menu by clicking "My PushButton"
      4. Move the window and open the menu again
      5. You should see, the menu is positioned wrong

      mapToParent() will solve the problem for this case, BUT it is considered to be a workaround and covers the actual issue.

      Attachments

        1. out.ogv
          4.09 MB
        2. out1.ogv
          3.00 MB
        3. qtbug50341.tar.bz2
          1 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            bachewii Jens
            kileppal Kimmo Leppälä
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes