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 find the source code we need in Qt src?
QtWS25 Last Chance

How to find the source code we need in Qt src?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
qt sources
2 Posts 2 Posters 784 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.
  • A Offline
    A Offline
    Accelerated
    wrote on last edited by
    #1

    Such as NumberAnimation in Qt Quick, i wanna find the principle of NumberAnimation.But there are lots of source file named "animation".Which one is the real source code file?

    1 Reply Last reply
    0
    • benlauB Offline
      benlauB Offline
      benlau
      Qt Champions 2016
      wrote on last edited by
      #2

      If you are using Linux/Mac, you may use the "grep" command.

      e.g

      $ grep -rn "class.*NumberAnimation" *
      quick/util/qquickanimation_p.h:321:class Q_QUICK_PRIVATE_EXPORT QQuickNumberAnimation : public QQuickPropertyAnimation
      quick/util/qquicksmoothedanimation_p.h:46:class Q_AUTOTEST_EXPORT QQuickSmoothedAnimation : public QQuickNumberAnimation
      quick/util/qquickspringanimation_p.h:45:class Q_AUTOTEST_EXPORT QQuickSpringAnimation : public QQuickNumberAnimation

      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