Results 1 to 4 of 4

Thread: Interactive Animation in SVG Not Working

  1. #1
    Join Date
    Feb 2010
    Posts
    9
    Qt products
    Qt4
    Platforms
    Windows

    Question Interactive Animation in SVG Not Working

    I'm developing an app in Qt for the very first time. I'm also very new to C++ in general. I have a background in web technologies like PHP, MySQL, HTML, CSS, etc. I think I have the basics down but I'm running into a little problem displaying an interactive animated SVG.

    More specifically, the animation doesn't seem to be working. It displays the SVG just fine, but just statically. The animation doesn't work at all.

    I have attached a very dumbed-down version of my app which is having the issue. I tried loading in the bubbles.svg file from the SVG Viewer example here instead of my SVG and the animation worked in that. Also, I've tried doing just a basic animation in my SVG file in case its the mouseover/mouseout that it doesn't like. However, I couldn't seem to get a basic animation to work either. So, I don't think its a bug in Qt or anything. It must be a problem with my SVG I guess.

    One other thing to note is this same SVG file works perfectly in my web browsers.

    I would really appreciate it if someone could shine some light on this problem.

    Thank you.
    Attached Files Attached Files

  2. #2
    Join Date
    Jan 2006
    Location
    Frankfurt
    Posts
    500
    Thanks
    1
    Thanked 52 Times in 52 Posts
    Platforms
    MacOS X Unix/X11

    Default Re: Interactive Animation in SVG Not Working

    On my system, I see a plus button that does nothing and the animated bubbles from the Qt example when compiling your application. Is that the expected behavior?
    It's nice to be important but it's more important to be nice.

  3. #3
    Join Date
    Feb 2010
    Posts
    9
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Interactive Animation in SVG Not Working

    Afraid not. What's supposed to happen is when you hover over the plus button it is supposed to crossfade until the button becomes blue with a blue glow around it. As I said, it works just fine if you test it in a web browser like Safari.

  4. #4
    Join Date
    Jan 2006
    Location
    Frankfurt
    Posts
    500
    Thanks
    1
    Thanked 52 Times in 52 Posts
    Platforms
    MacOS X Unix/X11

    Default Re: Interactive Animation in SVG Not Working

    I tried both graphics with safari: The Qt logo is rotating but the bubbles are not moving. Your button works fine.

    In the demo application, I see moving bubbles, a rotating Qt logo but your button is not working.

    Maybe mouse move events are not supported in the Qt widget. But you can try to embed a QWebView to have the full webkit implementation for showing the SVG.
    It's nice to be important but it's more important to be nice.

Similar Threads

  1. Animation not working on transition between states
    By vfernandez in forum Qt Programming
    Replies: 2
    Last Post: 2nd January 2010, 15:01
  2. Interactive QProcess
    By inktomi in forum Qt Programming
    Replies: 3
    Last Post: 8th August 2009, 18:21
  3. interactive image recommendation
    By yagabey in forum Qt Programming
    Replies: 0
    Last Post: 23rd November 2008, 12:03
  4. qsqlquery interactive?
    By lamera in forum Newbie
    Replies: 2
    Last Post: 7th September 2008, 10:09
  5. No Interactive feel-QProcess
    By prasann87 in forum Qt Programming
    Replies: 5
    Last Post: 11th January 2008, 10:47

Tags for this Thread

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.