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

Random rectangles drawn on map when using menus

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 5.12.0, 5.14.1
    • Location
    • None
    • It happens everywhere I tried. From simple laptops, to recent Mac Pro, Android tablets, Ubuntu systems, etc.

    Description

      Using a menu over a map causes random rectangles to be drawn. This has been around since 5.11 or so. I just installed 5.14.1 and wrote a bare bones app to make sure and it is still present. Note that this is not a "missing tile". The map is fully drawn before I hit the "menu" button. When you popup a menu, these rectangles are drawn over the map and go away when you dismiss the menu. You may need to zoom out as the rectangle some times is outside the viewable area. Both position and sizes are random. Or it appears to be the case.

      import QtQuick          2.12
      import QtQuick.Controls 2.12
      import QtLocation       5.12
      import QtPositioning    5.12
      import QtQuick.Window   2.12
      
      ApplicationWindow {
          visible:    true
          width:      1280
          height:     720
          title:      qsTr("Hello World")
          background: Item {
              anchors.fill:   parent
              Map {
                  anchors.fill:   parent
                  plugin:         Plugin { name: "osm" }
                  center:         QtPositioning.coordinate(59.91, 10.75)
                  zoomLevel:      14
              }
          }
          header: ToolBar {
              height:         30
              background:     Rectangle {
                  color:      Qt.rgba(0,0,0,0.5)
              }
              Button {
                  anchors.centerIn:   parent
                  text:               "Menu"
                  onClicked:          _theMenu.popup()
                  Menu {
                      id:             _theMenu
                      MenuItem {
                          text:       "One"
                      }
                      MenuItem {
                          text:       "Two"
                      }
                      MenuItem {
                          text:       "Three"
                      }
                  }
              }
          }
      }
      
      

      Attachments

        Issue Links

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

          Activity

            People

              paangele Paolo Angelelli
              grubba Gus Grubba
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes