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

setCacheMode( CacheBackground ) causes the background to not repaint correctly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 4.6.1
    • 4.5.3, 4.6.0
    • Widgets: GraphicsView
    • None
    • 2600fd42117913b427d07e510724b0ea5e355205

    Description

      I'm attaching a code that shows a custom widget over a graphics view, it has the weird problem of

      • You minimize the window
      • You restore the window
      • You click somewhere in the map 1 or 2 times, when you do it the third time
        there is a white rectangle where the information of the second country was.

      This is reproducible with Qt 4.6 both in Linux and Windows
      I'm attaching the code and a screenshot.

      Removing setCacheMode( CacheBackground ) makes it work but obviously it's not what one wants

      Attachments

        1. catalonia_comarques.png
          catalonia_comarques.png
          10 kB
        2. error.png
          error.png
          30 kB
        3. main.cpp
          0.2 kB
        4. mapwidget.cpp
          1 kB
        5. mapwidget.h
          0.4 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            ylopes Yoann Lopes
            tsdgeos Albert Astals Cid
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes