Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Artifacts after moving QGraphicsItem over QWidget
Forum Update on Monday, May 27th 2025

Artifacts after moving QGraphicsItem over QWidget

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 2 Posters 1.3k Views
  • 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
    aliks-os
    wrote on last edited by
    #1

    When I move QGraphicsItem near or over QWidgets, there are a "tracks" after moving. If minimize / maximize application - artifacts go out.

    On scene - there are no such artifacts

    Please help me how I can fix it.

    0_1541251234134_bcdb5489-3fc2-4e5a-b1cd-0600331e4761-image.png

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      What version of Qt are you using ?
      On what version of Windows ?
      Can you reproduce that with a small version of your UI ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      A 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        What version of Qt are you using ?
        On what version of Windows ?
        Can you reproduce that with a small version of your UI ?

        A Offline
        A Offline
        aliks-os
        wrote on last edited by aliks-os
        #3

        @SGaist
        Hi, hehe, in minimal example, I can not reproduce the problem.
        Have you any idea what the reason and how to fix it?

        I am using Qt 5.8.0. and Windows 10

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Could be custom painting. What does theses widgets do ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          A 1 Reply Last reply
          0
          • SGaistS SGaist

            Could be custom painting. What does theses widgets do ?

            A Offline
            A Offline
            aliks-os
            wrote on last edited by
            #5

            @SGaist the item that I move over the scene is a inherited from QGraphicsObject (of course it has a custom paint) and it leaves the trails on QTreeView that embeded into QDockWidget.

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              How did you implement that item ? It seem surprising that you can move it outside of the QGraphicsView.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              A 1 Reply Last reply
              0
              • SGaistS SGaist

                How did you implement that item ? It seem surprising that you can move it outside of the QGraphicsView.

                A Offline
                A Offline
                aliks-os
                wrote on last edited by aliks-os
                #7

                @SGaist I not move it outside of QGraphicsView. I press at the center of custom QGraphicsObject and move it over the scene, but near the edge of QGraphicsView. The sample version of my files in the attached zip. But in sample I can not replicate the problem.
                Is it possible that something else affect on it? I use in the application several hearbeats timers with 1s interval and several qthreads….

                [0_1541531979038_untitled4.zip](Uploading 100%)

                A 1 Reply Last reply
                0
                • A aliks-os

                  @SGaist I not move it outside of QGraphicsView. I press at the center of custom QGraphicsObject and move it over the scene, but near the edge of QGraphicsView. The sample version of my files in the attached zip. But in sample I can not replicate the problem.
                  Is it possible that something else affect on it? I use in the application several hearbeats timers with 1s interval and several qthreads….

                  [0_1541531979038_untitled4.zip](Uploading 100%)

                  A Offline
                  A Offline
                  aliks-os
                  wrote on last edited by
                  #8
                  This post is deleted!
                  1 Reply Last reply
                  0

                  • Login

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