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. Can I get FPS from QQuickView?
Forum Updated to NodeBB v4.3 + New Features

Can I get FPS from QQuickView?

Scheduled Pinned Locked Moved QML and Qt Quick
8 Posts 4 Posters 3.6k Views 1 Watching
  • 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.
  • R Offline
    R Offline
    RazrFalcon
    wrote on last edited by
    #1

    In QML1 I used QT_SHOW_DECLARATIVEVIEW_FPS, but in QML2 (Qt5) it's didn't work.
    How can I enable FPS showing?
    Thanks.

    1 Reply Last reply
    0
    • B Offline
      B Offline
      billouparis
      wrote on last edited by
      #2

      I guess you can still overload the paintevent method from the QQuickView class with the appropriate code?
      Bill

      1 Reply Last reply
      0
      • D Offline
        D Offline
        dvolosnykh
        wrote on last edited by
        #3

        There is no such method.

        1 Reply Last reply
        0
        • D Offline
          D Offline
          dvolosnykh
          wrote on last edited by
          #4

          There is no such method.

          1 Reply Last reply
          0
          • M Offline
            M Offline
            melghawi
            wrote on last edited by
            #5

            I think it would be pretty easy to create a custom qml component that renders the current fps

            1 Reply Last reply
            0
            • M Offline
              M Offline
              melghawi
              wrote on last edited by
              #6

              I think it would be pretty easy to create a custom qml component that renders the current fps

              1 Reply Last reply
              0
              • D Offline
                D Offline
                dvolosnykh
                wrote on last edited by
                #7

                Here is how it can be done on the QML side: "FPSMonitor":https://github.com/rburchell/qmantle2/blob/master/FPSMonitor.qml. Not sure if this is the best option, but at least you can get a rough estimation of FPS.

                1 Reply Last reply
                0
                • D Offline
                  D Offline
                  dvolosnykh
                  wrote on last edited by
                  #8

                  Here is how it can be done on the QML side: "FPSMonitor":https://github.com/rburchell/qmantle2/blob/master/FPSMonitor.qml. Not sure if this is the best option, but at least you can get a rough estimation of FPS.

                  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