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. QDirectPainter example
Forum Updated to NodeBB v4.3 + New Features

QDirectPainter example

Scheduled Pinned Locked Moved Mobile and Embedded
2 Posts 1 Posters 842 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.
  • A Offline
    A Offline
    ale82
    wrote on last edited by
    #1

    Hi,
    I'm trying to speed the switch from a screen to another one, the hardware is very poor and currently it takes 2/3 second between hide of a widget and show of another one.
    I know that by default Qt framework puts an intermediate layer to render the screen, it should save somewhere and then put in the frame buffer:

    !http://qt-project.org/doc/qt-4.8/images/qt-embedded-clientrendering.png(default paint)!

    And I read about direct paint skipping the intermediate layer using a QDirectPaint:

    !http://qt-project.org/doc/qt-4.8/images/qt-embedded-reserveregion.png(with QDirectPaint)!

    But it's not so clear to me how to use it, I can't find any example but a description of methods.

    Basically what I have is a MainScreen for standby, when I touch the screen I have overlap another screen.
    Both the screen are QWidget implemented with qt-creator, so with their UI form and so on.

    Can anybody suggest me some way to use QDirectPainter?
    Thanks!

    1 Reply Last reply
    0
    • A Offline
      A Offline
      ale82
      wrote on last edited by
      #2

      The widget has a complex layout with stylesheet and transparency

      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