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. How to apply a deformation to a QgraphicsView

How to apply a deformation to a QgraphicsView

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

    I'm using QGrahicsView/ Scene and QGraphicsItem to display a scene.

    I know that we can use setTransform() to a view. But I don't think what I'm trying to do can be done by this.

    Well, I want to apply a non-linear transform to a view from (x, y) to (x,y') with y' = f(y). The function f can be all kind of QEasingCurve functions.

    Any idea how can I do this, plz?

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

      I found drawItems() is obsolete. This function could be used for custom drawing for a view.
      My follow up question is how items are drawn in a view?

      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