Results 1 to 4 of 4

Thread: SVG Animation on QGraphicsScene

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2007
    Location
    London
    Posts
    206
    Thanks
    40
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android

    Default SVG Animation on QGraphicsScene

    Hi,

    I want to change the speed of a svg animation on QGraphicsScene.

    For testing, Ive added the following function to "SvgViewer app" in example applications of QtCreator :

    Qt Code:
    1. void SvgView::mousePressEvent(QMouseEvent *event)
    2. {
    3. qDebug()<<((QGraphicsSvgItem*)m_svgItem)->renderer()->framesPerSecond();
    4. ((QGraphicsSvgItem*)m_svgItem)->renderer()->setFramesPerSecond(0);
    5. }
    To copy to clipboard, switch view to plain text mode 

    Although the animation should stop after calling this; there is no change in the animation speed.

    What may be the problem here?

    Thanks in advance...
    Last edited by yagabey; 3rd September 2014 at 14:46.

Similar Threads

  1. Replies: 1
    Last Post: 8th September 2012, 05:08
  2. Replies: 1
    Last Post: 27th July 2012, 16:33
  3. animation in qt
    By rimie23 in forum Qt Programming
    Replies: 4
    Last Post: 6th May 2012, 11:09
  4. Replies: 1
    Last Post: 28th January 2012, 13:38
  5. qml animation
    By vinayaka in forum Qt Quick
    Replies: 2
    Last Post: 21st September 2011, 05:44

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.