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. QGraphicsSceneWheelEvent::delta being called when mouse wheel isn't used
Forum Updated to NodeBB v4.3 + New Features

QGraphicsSceneWheelEvent::delta being called when mouse wheel isn't used

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 1.1k 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.
  • W Offline
    W Offline
    waxwed
    wrote on last edited by
    #1

    I have a performance problem with a Qt widget application. Intel VTune Amplifier suggests the issue is with QGraphicsSceneWheelEvent::delta() being called along with QTimeLine::setCurveShape.

    The application is reasonably simple. It receives data on a socket and creates a new row in a QAbstractTableModel if/when needed. Each cell could be coloured based on its content. I control this using a data() override within qstandarditrem. However, if remove my colouring etc and simple display text I'm still getting a performance hit ~ 20-60% Cpu.

    So I'm interested to know why the QGraphicsWheelEvent::delta() method is being called when I'm not using the mouse at all. Also why/where is a QTimeLine::setCurveShape being called as I'm not directly calling this within my code?

    Thanks.

    1 Reply Last reply
    0
    • W Offline
      W Offline
      waxwed
      wrote on last edited by
      #2

      I'm going to start a new thread as the subject is wrong. After configuring Intel VTune so it pointed at the Qt src directory it pointed me in the right direction.

      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