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. How to use dirtyrect by QT5?
Forum Updated to NodeBB v4.3 + New Features

How to use dirtyrect by QT5?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
5 Posts 2 Posters 700 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.
  • D Offline
    D Offline
    DongSen
    wrote on last edited by
    #1

    I am using qt5 to development a cluster demo,but the fps is very low on imx6q,only 30.
    So,is there anyway to advance the fps,like dirtyrect?
    Could we use dirtyrect by QT5?

    jsulmJ 1 Reply Last reply
    0
    • D DongSen

      I am using qt5 to development a cluster demo,but the fps is very low on imx6q,only 30.
      So,is there anyway to advance the fps,like dirtyrect?
      Could we use dirtyrect by QT5?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @DongSen What is dirtyrect?
      Also, to get meaningful answer you need to provide more information:

      • Qt version
      • Better explanation of what you app is actually doing
      • Maybe some code where you get bad performance

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      D 1 Reply Last reply
      0
      • D Offline
        D Offline
        DongSen
        wrote on last edited by
        #3
        This post is deleted!
        1 Reply Last reply
        0
        • jsulmJ jsulm

          @DongSen What is dirtyrect?
          Also, to get meaningful answer you need to provide more information:

          • Qt version
          • Better explanation of what you app is actually doing
          • Maybe some code where you get bad performance
          D Offline
          D Offline
          DongSen
          wrote on last edited by
          #4

          @jsulm Thank you for reply:
          The dirtyrect means that I just want to redraw some parts of the screen,the other parts of screen,I hope it to keep the last frame.
          The version of Qt is 5.12.3.
          I have a automotive cluster demo,I want to redraw the pointer continuously,and only redraw the other parts when something else changed.

          jsulmJ 1 Reply Last reply
          0
          • D DongSen

            @jsulm Thank you for reply:
            The dirtyrect means that I just want to redraw some parts of the screen,the other parts of screen,I hope it to keep the last frame.
            The version of Qt is 5.12.3.
            I have a automotive cluster demo,I want to redraw the pointer continuously,and only redraw the other parts when something else changed.

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @DongSen You can draw in a pixmap (see https://stackoverflow.com/questions/17888795/how-to-use-qpainter-on-qpixmap) and then draw this pixmap on your widget. Then you can just change what needs to be changed in the pixmap keeping unchanged parts.

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            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