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. Jerky movement of custom QGraphicsItem in qt5

Jerky movement of custom QGraphicsItem in qt5

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 559 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.
  • T Offline
    T Offline
    Tigran84
    wrote on last edited by
    #1

    I have custom QGraphicsItem class, I used QGraphicsItem::ItemIsMovable flag, but I have problem, items not moved smootly, https://imagebin.ca/v/3MnXYx0WIVZU
    here is header and cpp files of class
    https://pastebin.com/i7HzyMFC
    https://pastebin.com/8TbnbTNG.

    mrjjM 1 Reply Last reply
    0
    • T Tigran84

      I have custom QGraphicsItem class, I used QGraphicsItem::ItemIsMovable flag, but I have problem, items not moved smootly, https://imagebin.ca/v/3MnXYx0WIVZU
      here is header and cpp files of class
      https://pastebin.com/i7HzyMFC
      https://pastebin.com/8TbnbTNG.

      mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Tigran84 said in Jerky movement of custom QGraphicsItem in qt5:

      ItemIsMovable

      Hi, it seems you implemented drag move yourself?

      Try this sample.
      http://doc.qt.io/qt-5/qtwidgets-graphicsview-diagramscene-example.html
      if you are after move by drag mouse.
      The frame work can drag move it by itself.

      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 Extensions
      • Unsolved