Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. [Solved] QPropertyAnimation not working on maemo5 ?
Forum Update on Monday, May 27th 2025

[Solved] QPropertyAnimation not working on maemo5 ?

Scheduled Pinned Locked Moved Mobile and Embedded
4 Posts 2 Posters 3.4k 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.
  • S Offline
    S Offline
    sleam
    wrote on last edited by
    #1

    I got an application that uses QPropertyAnimation to animate a QGraphicsItem, but it does not work as expected. In the simulator and in a windows desktop build it works as expected, the graphicsitem moves from point1 to point2. But on maemo5 the QGraphicsItem get set to x=0 y=0 and it does not move.

    List of installed Qt packages on maemo5:
    libqt4-appdownloader-comm 0.3.5
    libqt4-core 4.7.0
    libqt4-dbus 4.7.0
    libqt4-declarative 4.7.0
    libqt4-gui 4.7.0
    libqt4-maemo5 4.7.0
    libqt4-multimedia 4.7.0
    libqt4-network 4.7.0
    libqt4-opengl 4.7.0
    libqt4-phonon 4.7.0
    libqt4-script 4.7.0
    libqt4-sql 4.7.0
    libqt4-sql-sqlite 4.7.0
    libqt4-svg 4.7.0
    libqt4-test 4.7.0
    libqt4-translations 4.7.0
    libqt4-webkit 4.7.0
    libqt4-xml 4.7.0
    libqt4-xmlpatterns 4.7.0

    In Qt creator i got this:
    Qt for Fremantle PR1.3 Devices (Nokia Qt SDK)
    Qt version 4.7.0, using mkspec default (maemo)

    1 Reply Last reply
    0
    • F Offline
      F Offline
      fcrochik
      wrote on last edited by
      #2

      I suggest that you should post a small piece of code here for people to help you or just go straight to JIRA and report a bug. On either case you will need a small piece of code that shows problem.

      Certified Specialist & Qt Ambassador <a href="http://www.crochik.com">Maemo, Meego, Symbian, Playbook, RaspberryPi, Desktop... Qt everywhere!</a>

      1 Reply Last reply
      0
      • S Offline
        S Offline
        sleam
        wrote on last edited by
        #3

        Hum.. after doing some debuging I think that QPropertyAnimation may not be the fault... I will report back when I know more.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          sleam
          wrote on last edited by
          #4

          It was a problem with QString to float conversion in my code, I had to do this:

          @
          //t1 and t2 is QStringList's
          #ifdef Q_WS_WIN
          targetpoint1 = new QPoint((t1[0].toFloat()*32),(t1[1].toFloat()*32));
          targetpoint2 = new QPoint((t2[0].toFloat()*32),(t2[1].toFloat()*32));
          #endif

          #ifndef Q_WS_WIN
          targetpoint1 = new QPoint((t1[0].replace(",",".").toFloat()*32),(t1[1].replace(",",".").toFloat()*32));
          targetpoint2 = new QPoint((t2[0].replace(",",".").toFloat()*32),(t2[1].replace(",",".").toFloat()*32));
          #endif@

          I don't know if there is a better solution to this..

          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