Results 1 to 3 of 3

Thread: QGraphicsItem move question

  1. #1
    Join Date
    Jan 2006
    Location
    Maui, Hawaii
    Posts
    120
    Thanks
    65
    Thanked 4 Times in 4 Posts
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default QGraphicsItem move question

    The GraphicsView looks great!

    Now I'm trying to figure out how much work it's going to take to port to the QCanvas stuff to QGraphicsView.

    In Qt 4.2 how does one tell a QGraphicsItem to move by a certain amount per update?
    I'm looking for something equivalent to setXVelocity() in the QCanvasItem class.

    I didn't see anything that seemed to resemble it in the docs:
    http://doc.trolltech.com/4.2/qgraphicsitem.html

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QGraphicsItem move question

    I guess you have another class for this: http://doc.trolltech.com/4.2/qgraphi...animation.html

  3. #3
    Join Date
    Jan 2006
    Location
    Norway
    Posts
    124
    Thanked 38 Times in 30 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QGraphicsItem move question

    You can find some hints and tricks here:

    http://doc.trolltech.com/4.2/graphicsview-porting.html
    Bitto / Andreas Aardal Hanssen - andreas dot aardal dot hanssen at nokia
    Nokia Software Manager, Qt Development

Similar Threads

  1. Move window in Clone Mode
    By ultrabrite in forum Qt Programming
    Replies: 1
    Last Post: 14th June 2006, 18:22
  2. Move child widget along with the parent widget
    By sreedhar in forum Qt Programming
    Replies: 2
    Last Post: 15th May 2006, 12:00

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.