Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Painting artifacts of QGraphicsProxyWidget with QPlainTextEdit
Qt 6.12 LTS is out! See what's new in the release blog

Painting artifacts of QGraphicsProxyWidget with QPlainTextEdit

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 1 Posters 762 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Alex Kudryavtsev
    wrote on last edited by A Former User
    #1

    Hello, everyone.

    There was a problem of repainting the graphical scene when using elements with a QGraphicsProxyWidget with QPlainTextEdit.

    It looks like this, as shown in the pictures:


    The artifact is observed for Qt version 5.9.1 in Windows and Linux. The minimal compiled example is posted on github: https://github.com/kai66673/TestSceneFail

    Any ideas how to avoid such behavior?

    [Edit: fixed images links ~~ @Wieland]

    1 Reply Last reply
    0
    • A Offline
      A Offline
      Alex Kudryavtsev
      wrote on last edited by
      #2

      The solution is setCacheMode of proxy widget to QGraphicsItem::DeviceCoordinateCache

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt
      • Unsolved