Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. How to rotate and change location of a png in GraphicsView
Forum Updated to NodeBB v4.3 + New Features

How to rotate and change location of a png in GraphicsView

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 558 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.
  • G Offline
    G Offline
    ganaa
    wrote on last edited by
    #1

    hi i have to create hand motion animation but not advanced

    just rotate and change location by small distance in loop is enough

    but i dont have any idea please help my code is here:

    @
    QPixmap kineticPix(":/images/sup1.png");
    Pixmap *item = new Pixmap(kineticPix);
    item->setOffset(-kineticPix.width()/2, -kineticPix.height()/2);
    scene->clear();
    scene->addItem(item);
    @

    how to rotate and change location only picture not whole background ? because i have background picture too.. that should not be changed or rotated.

    [edit: added missing coding tags @ SGaist]

    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