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. (Video of) Jumping of QGraphicsObject-derived custom PyQt5 items (default press/release/move used)
Forum Updated to NodeBB v4.3 + New Features

(Video of) Jumping of QGraphicsObject-derived custom PyQt5 items (default press/release/move used)

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 262 Views 2 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.
  • enjoysmathE Offline
    enjoysmathE Offline
    enjoysmath
    wrote on last edited by enjoysmath
    #1

    Here is a video showing what's happening:

    https://youtu.be/XolQRqMff4o

    Was wondering if that sparks any ideas for you that you can suggest I try.

    The items will (only sometimes) jump when I go to press-hold-drag them. They jump only when I start the drag, not when pressed. My code is here:

    https://github.com/enjoysmath/BananaCats

    with the custom items in the /widget folder all derived from a base class called BananaCats that is derived from QGraphicsObject, except Label which had to be done differently. Anyway, this phenomenon is happening both on Label's as well as Arrow's and Nodes.

    I am not setting the position anywhere as far as I know. I can try setting a breakpoint in an implemented setPos() method. I think I tried that though. Can't have this jumping behavior happening for new users. It would make them never want to use the app again! :)

    https://github.com/enjoysmath
    https://math.stackexchange.com/users/26327/exercisingmathematician

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

      Hi,

      Can you narrow down where to look in your code base ?
      Going through a full project to find the culprit is a bit much.

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

      1 Reply Last reply
      1
      • enjoysmathE Offline
        enjoysmathE Offline
        enjoysmath
        wrote on last edited by
        #3

        I have given up on that project for now. It has many many bugs :(

        https://github.com/enjoysmath
        https://math.stackexchange.com/users/26327/exercisingmathematician

        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